GNU bug report logs - #17035
[PATCH] chmod -c -R produces errors with special permissions

Previous Next

Package: coreutils;

Reported by: Dylan Alex Simon <dylan <at> dylex.net>

Date: Tue, 18 Mar 2014 16:54:02 UTC

Severity: normal

Tags: patch

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #19 received at 17035 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: 17035 <at> debbugs.gnu.org, Pádraig Brady <P <at> draigbrady.com>,
 dylan <at> dylex.net
Cc: 17035-done <at> debbugs.gnu.org
Subject: Re: bug#17035: [PATCH] chmod -c -R produces errors with special
 permissions
Date: Tue, 18 Mar 2014 16:36:37 -0700
On Tue, Mar 18, 2014 at 11:45 AM, Pádraig Brady <P <at> draigbrady.com> wrote:
> diff --git a/tests/chmod/c-option.sh b/tests/chmod/c-option.sh
...
> +# This should never warn, but in did when special
> +# bits are set on b (the common case under test)
> +chmod -c -R g+w a 2>err
> +test -s err && fail=1

Thanks for adding the test.
I have a small preference for using compare-vs-/dev/null rather than
"test -s," since the former will print the unexpected output in the log,
while the latter won't. So maybe this instead?

  compare /dev/null err || fail=1




This bug report was last modified 11 years and 71 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.