From ef44086db0b4bfad563727d81dcf9ecdf38ded81 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 28 Mar 2012 13:26:12 -0700 Subject: chmod: undo previous change It's not portable; see . * src/chmod.c, NEWS: Undo previous change. --- src/chmod.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3-54-g00ecf