From 5911eff83efedce91b856b54ae11d94692c7d71e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 27 Mar 2012 10:02:59 -0700 Subject: chmod: fix symlink race condition * NEWS: Document this. * src/chmod.c (process_file): Don't follow symlink if we think the file is not a symlink. --- NEWS | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index c8d2bbcf0..40dadc27d 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,12 @@ GNU coreutils NEWS -*- outline -*- * Noteworthy changes in release ?.? (????-??-??) [?] +** Bug fixes + + When recursing, chmod -R no longer gets confused into following a symlink + if some other process simultaneously replaces a non-symlink with a symlink. + The fix is effective on modern hosts with the fchmodat or lchmod syscalls. + [bug introduced in the beginning] * Noteworthy changes in release 8.16 (2012-03-26) [stable] -- cgit v1.2.3-54-g00ecf