Changeset 1ad26cd in rtems for cpukit


Ignore:
Timestamp:
Oct 18, 2018, 10:38:58 AM (12 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3cf12c9
Parents:
3825926
git-author:
Sebastian Huber <sebastian.huber@…> (10/18/18 10:38:58)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/22/18 06:06:05)
Message:

Support O_NOFOLLOW open() flag

Close #3546.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/open.c

    r3825926 r1ad26cd  
    7575  bool truncate = (oflag & O_TRUNC) == O_TRUNC;
    7676  bool open_dir;
    77   int eval_flags = RTEMS_FS_FOLLOW_LINK
     77#ifdef O_NOFOLLOW
     78  int follow = (oflag & O_NOFOLLOW) == O_NOFOLLOW ? 0 : RTEMS_FS_FOLLOW_LINK;
     79#else
     80  int follow = RTEMS_FS_FOLLOW_LINK;
     81#endif
     82  int eval_flags = follow
    7883    | (read_access ? RTEMS_FS_PERMS_READ : 0)
    7984    | (write_access ? RTEMS_FS_PERMS_WRITE : 0)
Note: See TracChangeset for help on using the changeset viewer.