diff options
author | Daniel Mack <github@zonque.org> | 2016-03-02 09:16:08 +0100 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2016-03-02 09:16:08 +0100 |
commit | 77f911c56bcfe2eccf15d9fa77bdd306a0359879 (patch) | |
tree | 97f3e9b555ffc96d271c136a91dbfae279041513 /src/basic/xattr-util.c | |
parent | 2a0b102fd4ff6b629dbb85a2fbc2c3eae9328bb5 (diff) | |
parent | c4b6915670ded7384795705ca9bb131da4763bac (diff) |
Merge pull request #2779 from 0xAX/openat-opath-excess-flags
tree-wide: no need to pass excess flags to open()/openat() if O_PATH …
Diffstat (limited to 'src/basic/xattr-util.c')
-rw-r--r-- | src/basic/xattr-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/xattr-util.c b/src/basic/xattr-util.c index 8d7f14f382..8256899eda 100644 --- a/src/basic/xattr-util.c +++ b/src/basic/xattr-util.c @@ -110,7 +110,7 @@ ssize_t fgetxattrat_fake(int dirfd, const char *filename, const char *attribute, /* The kernel doesn't have a fgetxattrat() command, hence let's emulate one */ - fd = openat(dirfd, filename, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_PATH|(flags & AT_SYMLINK_NOFOLLOW ? O_NOFOLLOW : 0)); + fd = openat(dirfd, filename, O_CLOEXEC|O_PATH|(flags & AT_SYMLINK_NOFOLLOW ? O_NOFOLLOW : 0)); if (fd < 0) return -errno; |