bug-fileutils
[Top][All Lists]
Advanced

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

wrong description for chmod?


From: Christoph Bergmann
Subject: wrong description for chmod?
Date: Wed, 10 Dec 2003 17:27:36 +0100

hi...

In the description for

chmod

when calling

info chmod

it is said:

"
`chmod' never changes the permissions of symbolic links, since the
`chmod' system call cannot change their permissions.  This is not a
problem since the permissions of symbolic links are never used.
However, for each symbolic link listed on the command line, `chmod'
changes the permissions of the pointed-to file.  In contrast, `chmod'
ignores symbolic links encountered during recursive directory
traversals.
"

But I experienced on different systems, that the last sentence is not
true:

chmod DOES follow smbolic links during recursive directory traversals -
they are NOT ignored.

What I did:

chmod 700 * -R

and there where subdirectories which had symbolic links in it pointing
to other directories - these other directories (and their subdirectories)
where affected from the chmod command too... And this behaviour is in
contrast to chown which (per default) does NOT follow symbolic links.

Is this a bug in the description? Or with the command chmod?


Best regards,

Christoph Bergmann


PS: Calling "man chmod" gives:

GNU fileutils 4.0         November 1998

Maybe this is already fixed in a newer version?






reply via email to

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