diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-03-22 15:30:16 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-03-22 15:43:41 +0100 |
commit | f2a1ba5002c70da934fed9874bfe90e11ab92e17 (patch) | |
tree | 0b4637ae0e7ef9cff92140157b8db34b9d628f41 /cpukit/libfs/src/imfs/imfs_creat.c | |
parent | 13bcb3e738b7d84a795710f72fd1039e7cf80884 (diff) |
libfs: Always use geteuid() and getegid()
The two functions are independent of the POSIX API.
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_creat.c')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_creat.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_creat.c b/cpukit/libfs/src/imfs/imfs_creat.c index 38c8385f43..5454f0305e 100644 --- a/cpukit/libfs/src/imfs/imfs_creat.c +++ b/cpukit/libfs/src/imfs/imfs_creat.c @@ -66,13 +66,8 @@ IMFS_jnode_t *IMFS_allocate_node( * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode; - #if defined(RTEMS_POSIX_API) - node->st_uid = geteuid(); - node->st_gid = getegid(); - #else - node->st_uid = 0; - node->st_gid = 0; - #endif + node->st_uid = geteuid(); + node->st_gid = getegid(); /* * Now set all the times. |