chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
missing: add a bunch of mount flags
[elogind.git]
/
src
/
basic
/
xattr-util.c
diff --git
a/src/basic/xattr-util.c
b/src/basic/xattr-util.c
index 85f3d20604c088ea9faf9ab10af42be17c0e7f5c..6b5c5465316328c1d18ff467cdffd531ee3fccbc 100644
(file)
--- a/
src/basic/xattr-util.c
+++ b/
src/basic/xattr-util.c
@@
-111,7
+111,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 */
/* 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;
if (fd < 0)
return -errno;