Paul Eggert
5012223d78
cp: fix --preserve=ownership permissions bug
...
This fixes a bug that I introduced in
2006-12-06T19:44:08Z!eggert@cs.ucla.edu .
* src/copy.c (USE_XATTR): New macro.
(copy_reg): Use it to help the compiler. Prefer open u+w to a
later chmod u=rw; u+r isn’t needed for xattr. For the later u-r,
do only one (or zero) chmod calls instead of two (or one).
In the last chmod, respect the umask instead of ignoring it.
* tests/cp/preserve-mode.sh: Test for the bug.
2021-11-20 13:50:35 -08:00
..
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-05-12 22:14:11 +01:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-11-20 13:50:35 -08:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-08-25 12:37:57 +01:00
2021-08-25 12:37:57 +01:00
2021-08-25 12:37:57 +01:00
2021-09-25 22:40:01 +01:00
2021-01-01 16:36:09 +00:00
2021-08-25 12:37:57 +01:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2021-01-01 16:36:09 +00:00
2006-09-08 17:08:53 +00:00