diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-03-28 13:26:12 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-03-28 13:26:58 -0700 |
commit | ef44086db0b4bfad563727d81dcf9ecdf38ded81 (patch) | |
tree | bb955a9522aecd83e359ba65138dd07f62ebee49 /src | |
parent | 5911eff83efedce91b856b54ae11d94692c7d71e (diff) | |
download | coreutils-ef44086db0b4bfad563727d81dcf9ecdf38ded81.tar.xz |
chmod: undo previous change
It's not portable; see <http://bugs.gnu.org/11108#17>.
* src/chmod.c, NEWS: Undo previous change.
Diffstat (limited to 'src')
-rw-r--r-- | src/chmod.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/chmod.c b/src/chmod.c index 2e1f1c70b..aa4ac771c 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -268,15 +268,7 @@ process_file (FTS *fts, FTSENT *ent) if (! S_ISLNK (old_mode)) { - /* Use any native support for AT_SYMLINK_NOFOLLOW, to avoid - following a symlink if there is a race. */ - #if HAVE_FCHMODAT || HAVE_LCHMOD - int follow_flag = AT_SYMLINK_NOFOLLOW; - #else - int follow_flag = 0; - #endif - - if (fchmodat (fts->fts_cwd_fd, file, new_mode, follow_flag) == 0) + if (chmodat (fts->fts_cwd_fd, file, new_mode) == 0) chmod_succeeded = true; else { |