diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-04-17 20:48:23 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-04-17 20:48:23 +0000 |
commit | ade4e953451d754d4a5dd76b73b40245c9fd896c (patch) | |
tree | 534918b2af3021a7ebe6f7c6fd54e344c40a3f75 | |
parent | 39448a239a550a59cddd58f2856eb991b089d467 (diff) | |
download | coreutils-ade4e953451d754d4a5dd76b73b40245c9fd896c.tar.xz |
(openat_needs_fchdir) [defined __OPENAT_PREFIX]:
Turn this into a macro that always returns true.
-rw-r--r-- | lib/ChangeLog | 5 | ||||
-rw-r--r-- | lib/openat.h | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 265e278ac..bf50ca048 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2006-04-17 Paul Eggert <eggert@cs.ucla.edu> + + * openat.h (openat_needs_fchdir) [defined __OPENAT_PREFIX]: + Turn this into a macro that always returns true. + 2006-04-15 Paul Eggert <eggert@cs.ucla.edu> * utimens.c (futimens): glibc futimesat messes up if /proc diff --git a/lib/openat.h b/lib/openat.h index 017cf5cb0..9eca973b5 100644 --- a/lib/openat.h +++ b/lib/openat.h @@ -75,11 +75,13 @@ DIR *fdopendir (int fd); int fstatat (int fd, char const *file, struct stat *st, int flag); # define unlinkat __OPENAT_ID (unlinkat) int unlinkat (int fd, char const *file, int flag); +bool openat_needs_fchdir (void); #else # define openat_permissive(Fd, File, Flags, Mode, Cwd_errno) \ openat (Fd, File, Flags, Mode) +# define openat_needs_fchdir() false #endif @@ -115,5 +117,3 @@ lchmodat (int fd, char const *file, mode_t mode) { return fchmodat (fd, file, mode, AT_SYMLINK_NOFOLLOW); } - -bool openat_needs_fchdir (void); |