]> Savannah Git Hosting - gnulib.git/commit
fchmodat, lchmod: port to buggy Linux filesystems
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 13 Feb 2020 18:41:10 +0000 (10:41 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 13 Feb 2020 18:41:54 +0000 (10:41 -0800)
commitd17d3a3cc55500709c22c7d0ade24a0845aa17b9
tree7c1ebef1fa2efc343c37d1d93ea3643db8a504e5
parent4fcedca004fd13aecb5c6f235a988a5548bcb9a4
fchmodat, lchmod: port to buggy Linux filesystems

Problem reported by Florian Weimer in:
https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
* lib/fchmodat.c (fchmodat):
* lib/lchmod.c (lchmod):
Don’t assume that chmod on the O_PATH-opened fd will do
the right thing on a symbolic link.
* lib/fchmodat.c (fchmodat):
Don’t attempt to special-case
any flag value other than AT_SYMLINK_NOFOLLOW.
ChangeLog
lib/fchmodat.c
lib/lchmod.c