chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f5cab4
)
musl-fix: faccessat does not support AT_SYMLINK_NOFOLLOW with musl.
author
Enno Boland
<g@s01.de>
Wed, 24 May 2017 11:19:32 +0000
(13:19 +0200)
committer
Enno Boland
<g@s01.de>
Wed, 24 May 2017 11:19:32 +0000
(13:19 +0200)
src/basic/fs-util.h
patch
|
blob
|
history
diff --git
a/src/basic/fs-util.h
b/src/basic/fs-util.h
index 294d617cd761d9e2f81e8444d558347e80685339..2000b38a96738230e43df68dca4c802750ee8117 100644
(file)
--- a/
src/basic/fs-util.h
+++ b/
src/basic/fs-util.h
@@
-51,7
+51,12
@@
int fchmod_umask(int fd, mode_t mode);
int fd_warn_permissions(const char *path, int fd);
+#ifdef __GLIBC__
#define laccess(path, mode) faccessat(AT_FDCWD, (path), (mode), AT_SYMLINK_NOFOLLOW)
+#else
+#define laccess(path, mode) faccessat(AT_FDCWD, (path), (mode), 0)
+#endif
+
int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode);
int touch(const char *path);