bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] chmod options -H, -L, -P


From: James Youngman
Subject: [patch] chmod options -H, -L, -P
Date: Sun, 17 Jul 2005 12:21:35 +0100
User-agent: Mutt/1.5.9i

On Sat, Jul 16, 2005 at 07:14:13PM -0700, Paul Eggert wrote:

> I assume you're talking about the -H, -h, -L, -P options.  You're
> right, these would be nice to add to coreutils.  

Please find enclosed a patch which adds the -H, -L and -P options
(with no long form).  This was actually pretty easy since fts()
provides all the required functionality.  I also enclose an entry for
the test suite for these three options (and the default).  I've tested
the test suite entry by backing out the change and seeing the new
tests fail.

Apologies for any formatting errors in the ChangeLog entry.

Adding the -h option is essentially orthogonal as this would be a
change to process_file(); if S_ISLNK(file_stats->st_mode), we would
need to use lchmod(2) (for which a test would need to be introduced
into configure.ac) on the symbolic link.  I haven't implemented this
yet.

Dave, could you define for us (i.e. the mailing list) how the "-h" and
"-L" options of chmod interact, both when -R is given and when it is
not?  Thanks.

Regards,
James.

Attachment: coreutils.chmod.optionsHLP.part1.patch
Description: Text document

Attachment: coreutils.chmod.optionsHLP.part2.patch
Description: Text document

Attachment: coreutils.chmod.optionsHLP.part3.ChangeLog
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]