bug#60291: chmod a-r does not fail for vfat

2022-12-23 Thread Paul Eggert
On 12/23/22 17:09, Krzysztof Żelechowski wrote: chmod a-r a.txt && stat a.txt Expected: chmod: unsupported permissions Got: -r--r--r-- This is wrong because the command chmod had failed to set the permissions The chmod command is doing the right thing; the problem lies elsewhere. Run "strace

bug#60291: chmod a-r does not fail for vfat

2022-12-23 Thread Krzysztof Żelechowski
chmod (GNU coreutils) 9.1 x86_64 cd /tmp dd if=/dev/zero of=fd0 count=2880 echo 'drive a: file="/tmp/fd0' >.mtoolsrc mformat a: umask 0022 udisksctl loop-setup -f fd0 udisks mount /dev/loop3p1 cd /run/media/dell/1F9D-2F6C echo >a.txt chmod a-r a.txt && stat a.txt Expected: chmod: