Changeset f2a1ba5 in rtems


Ignore:
Timestamp:
03/22/13 14:30:16 (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
c32b1ef
Parents:
13bcb3e
git-author:
Sebastian Huber <sebastian.huber@…> (03/22/13 14:30:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/22/13 14:43:41)
Message:

libfs: Always use geteuid() and getegid()

The two functions are independent of the POSIX API.

Location:
cpukit/libfs/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/imfs/imfs_creat.c

    r13bcb3e rf2a1ba5  
    6767   */
    6868  node->st_mode = mode;
    69   #if defined(RTEMS_POSIX_API)
    70     node->st_uid = geteuid();
    71     node->st_gid = getegid();
    72   #else
    73     node->st_uid = 0;
    74     node->st_gid = 0;
    75   #endif
     69  node->st_uid = geteuid();
     70  node->st_gid = getegid();
    7671
    7772  /*
  • cpukit/libfs/src/rfs/rtems-rfs-rtems.c

    r13bcb3e rf2a1ba5  
    610610  int                     rc;
    611611
    612 #if defined(RTEMS_POSIX_API)
    613612  uid = geteuid ();
    614613  gid = getegid ();
    615 #else
    616   uid = 0;
    617   gid = 0;
    618 #endif
    619614
    620615  rc = rtems_rfs_inode_create (fs, parent, name, namelen,
Note: See TracChangeset for help on using the changeset viewer.