diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-10-05 21:39:12 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-10-05 21:39:12 +0000 |
commit | 1fa3b5014035f324ddec26576c0283d00bfbbbef (patch) | |
tree | 957af26f77130d3b3815a12115dad822deb54e53 /src/remove.c | |
parent | d78ad5caccb4018d4eb833b43d17a417d4e7dc28 (diff) | |
download | coreutils-1fa3b5014035f324ddec26576c0283d00bfbbbef.tar.xz |
* src/dd.c (flags): noatime and nofollow now depend on
HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW, too.
(usage): Output info about noatime and nofollow only if
they are known to work.
* src/remove.c (AD_push): Inspect HAVE_WORKING_O_NOFOLLOW rather
than O_NOFOLLOW, when testing whether it's possible to avoid a
race condition reliably.
Diffstat (limited to 'src/remove.c')
-rw-r--r-- | src/remove.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remove.c b/src/remove.c index 13a6e2768..d362db0ee 100644 --- a/src/remove.c +++ b/src/remove.c @@ -621,7 +621,7 @@ AD_push (int fd_cwd, Dirstack_state *ds, char const *dir, /* If our uses of openat are guaranteed not to follow a symlink, then we can skip this check. */ - if ( ! O_NOFOLLOW) + if (! HAVE_WORKING_O_NOFOLLOW) { struct stat sb; if (fstat (fd_cwd, &sb) != 0) |