summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/lchown.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/lchown.c')
-rw-r--r--cpukit/libcsupport/src/lchown.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/cpukit/libcsupport/src/lchown.c b/cpukit/libcsupport/src/lchown.c
index 1092f9017e..83bdf6f95c 100644
--- a/cpukit/libcsupport/src/lchown.c
+++ b/cpukit/libcsupport/src/lchown.c
@@ -12,20 +12,19 @@
*/
#if HAVE_CONFIG_H
-#include "config.h"
+ #include "config.h"
#endif
#include <unistd.h>
-#include <rtems.h>
+#include <rtems/libio_.h>
-int _chown_helper( const char *path, uid_t owner, gid_t group, int follow_link);
-
-int lchown(
- const char *path,
- uid_t owner,
- gid_t group
-)
+int lchown( const char *path, uid_t owner, gid_t group )
{
- return _chown_helper( path, owner, group, false );
+ return rtems_filesystem_chown(
+ path,
+ owner,
+ group,
+ RTEMS_LIBIO_FOLLOW_HARD_LINK
+ );
}