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


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Bernhard Voelker <mail <at> bernhard-voelker.de>
Cc: dylan <at> dylex.net, 17035 <at> debbugs.gnu.org
Subject: bug#17035: [PATCH] chmod -c -R produces errors with special permissions
Date: Tue, 18 Mar 2014 23:41:19 +0000
On 03/18/2014 10:18 PM, Bernhard Voelker wrote:
> On 03/18/2014 07:45 PM, Pádraig Brady wrote:
>> The fix looks good.  It seems this bug was introduced
>> with the change to FTS in 5.1.0 (released Dec 2003)
> 
> Wasn't it commit v5.2.1-690-gbc580f6?

I think that restricted the issue to if (new_mode & (S_ISUID | S_ISGID | S_ISVTX))
but the stat on the relative name was there previously?

> One question: I did not dig into this deeper yet, but what exactly
> is the connection between "directory with special permissions"
> vs. "stat()ing the wrong file"?
> I'm asking because incidentally yesterday I saw the same warning
> from "chmod -R -c" when playing with recursive bind-mounts, i.e.,
> there were no files or directories with special bits set.

Interesting. Looking at the code seems that message
is restricted to the above condition where those bits are set.
Can you reproduce?

thanks,
Pádraig.





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.