Re: question related to cp (-p) and /tmp
Hi,
Patrice Duroux wrote:
> > cp: preserving permissions for '/tmp/test.sh': Operation not supported
Greg Wooledge wrote:
> I was thinking something similar, but the "ls -l ./test.sh" did not
> show any markup indicating ACL.
At least cp calls ACL "permissions". See
https://sources.debian.org/src/coreutils/9.4-3.1/lib/copy-acl.c/?hl=54#L54
After getting return value -1 from copy_acl(), it does:
error (0, errno, _("preserving permissions for %s"), quote (dst_name));
The other two occurences of the error message are not as easy to decode:
https://sources.debian.org/src/coreutils/9.4-3.1/src/copy.c/?hl=1696#L1696
https://sources.debian.org/src/coreutils/9.4-3.1/src/copy.c/?hl=3340#L3340
Other thought:
Maybe chattr(1) attribute "i" can be considered a permission, too.
Have a nice day :)
Thomas
Reply to: