[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65599: mv and cp give a pointless warning when moving/copying a dire
From: |
Paul Eggert |
Subject: |
bug#65599: mv and cp give a pointless warning when moving/copying a directory |
Date: |
Sat, 2 Sep 2023 13:44:11 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
On 2023-09-02 04:18, Bruno Haible wrote:
chmod fails with EACCES, hence per POSIX
<https://pubs.opengroup.org/onlinepubs/9699919799/functions/chmod.html>
it's buggy.
Thanks, I reported the bug with chmod, chown, etc. to the linux-cifs
mailing list, here:
https://lore.kernel.org/linux-cifs/fe8ab586-c697-583b-650d-3adac64df7b2@cs.ucla.edu/T/#u
I did some testing with fsetxattr and found that it has a similar issue
even with ext4; for example, setxattr("/", "a", "b", 1, 0) fails with
EACCES. This is not a POSIX violation, since POSIX lacks setxattr.
However it's bad form. And it means coreutils needs the attached
workaround not just for CIFS, but also for ext4 in some (rare) cases.
I installed the attached workaround on coreutils and am closing the bug
report. Thanks again for mentioning it.
0001-cp-mv-install-fix-chmod-on-Linux-CIFS.patch
Description: Text Data
- bug#65599: mv and cp give a pointless warning when moving/copying a directory, Paul Eggert, 2023/09/01
- bug#65599: mv and cp give a pointless warning when moving/copying a directory, Bruno Haible, 2023/09/01
- bug#65599: mv and cp give a pointless warning when moving/copying a directory, Paul Eggert, 2023/09/01
- bug#65599: mv and cp give a pointless warning when moving/copying a directory, Bruno Haible, 2023/09/01
- bug#65599: mv and cp give a pointless warning when moving/copying a directory, Paul Eggert, 2023/09/01
- bug#65599: mv and cp give a pointless warning when moving/copying a directory, Bruno Haible, 2023/09/01
- bug#65599: mv and cp give a pointless warning when moving/copying a directory, Paul Eggert, 2023/09/01
- bug#65599: mv and cp give a pointless warning when moving/copying a directory, Paul Eggert, 2023/09/01
- bug#65599: mv and cp give a pointless warning when moving/copying a directory, Bruno Haible, 2023/09/02
- bug#65599: mv and cp give a pointless warning when moving/copying a directory,
Paul Eggert <=
- bug#65599: mv and cp give a pointless warning when moving/copying a directory, Bruno Haible, 2023/09/01