From d9dbbb9a455f6bfc4e09d9f5f6c6c633f1b03c52 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 7 Nov 2009 08:09:12 +0100 Subject: chcon, chgrp, chmod and chown now diagnose a directory cycle * lib/xfts.c (cycle_warning_required): New function. * lib/xfts.h: Declare it. * src/chown-core.c (change_file_owner): Diagnose a cycle. * src/chmod.c (process_file): Likewise. * src/chcon.c (process_file): Likewise. * NEWS (Bug fixes): Mention this. --- NEWS | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 24b2afa13..b13a5f21a 100644 --- a/NEWS +++ b/NEWS @@ -8,8 +8,9 @@ GNU coreutils NEWS -*- outline -*- Even then, chcon may still be useful. [bug introduced in coreutils-8.0] - du now diagnoses an ostensible directory cycle and arranges to exit nonzero. - Before, it would silently ignore the offending directory and all "contents." + chcon, chgrp, chmod, chown and du now diagnose an ostensible directory cycle + and arrange to exit nonzero. Before, they would silently ignore the + offending directory and all "contents." env -u A=B now fails, rather than silently adding A to the environment. Likewise, printenv A=B silently ignores the invalid -- cgit v1.2.3-70-g09d2