[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Change chown to indicate if it cant do proper changes of file permis
From: |
Eric Blake |
Subject: |
Re: Change chown to indicate if it cant do proper changes of file permissions |
Date: |
Thu, 21 Jun 2007 19:19:31 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.12) Gecko/20070509 Thunderbird/1.5.0.12 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Roebe XXX on 6/21/2007 5:06 PM:
> Hi there, this is a very minor flaw, but i thought I'd report
> it here in case someone is interested to adjust the behaviour
> of chmod. It seems that chmod wont always report if it cant do
> a change of file permission or if it failed.
> This lead us on IRC to waste some minutes when someone wasnt
> able to chmod a FAT filesystem - obviously because FAT
> doesnt allow chmod 777 for example :)
>
> But I think it should report a message such as:
> "Can not modify permission of FAT file."
Thanks for the report. However, coreutils can only report an error if the
underlying chmod(2) syscall returns an error. Are you on a Windows-based
system (such as cygwin), or on Linux? Either way, this is something you'd
have to take up with the OS developers. And don't expect much sympathy -
experience has shown that with lousy file systems (such as FAT), being
tolerant tends to result in a saner work flow than trying to report errors
for things that are flat out unsupported by the file system.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGeyOj84KuGfSFAYARAgrCAKCLOrD4eqxrEn1B0CaDCTY7AfVS1ACgq2JZ
RBE54TSPEZfIP2xGoOs1owI=
=xxQK
-----END PGP SIGNATURE-----