bug-coreutils
[Top][All Lists]
Advanced

[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: Fri, 1 Sep 2023 10:47:40 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 2023-09-01 08:09, Bruno Haible wrote:
It applies to all 4 variants, as can be seen from applying it to a directory:

$ ./a.out /media/nas/bruno/dir1
lchown: Permission denied
fchownat: Permission denied
chown: Permission denied
fchown: Permission denied

Thanks, for coreutils it'd be helpful to now whether there's a similar problem with chmod-related syscalls. If you compile and run the attached program on a file that you don't own (e.g., './a.out /'), does it incorrectly issue "Permission denied" instead of "Operation not permitted" diagnostics?

Attachment: fchmodat-test.c
Description: Text Data


reply via email to

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