Date: Wed, 12 Feb 2020 20:13:38 +0100 From: Florian Weimer <fw@...eb.enyo.de> To: Rich Felker <dalias@...c.org> Cc: Paul Eggert <eggert@...ucla.edu>, Gnulib bugs <bug-gnulib@....org>, musl@...ts.openwall.com, 39236@...bugs.gnu.org Subject: Re: bug#39236: coreutils cp mishandles error return from lchmod * Rich Felker: > Note that in any case, musl's lchmod/fchmodat is not affected since it > always refuses to change symlink modes; I did this because I was > worried that chmod on the magic symlink in /proc might pass through > not just to the symlink it refers to, but to the symlink target if one > exists. With current kernel versions it seems that does not happen; is > it safe to assume it doesn't? I saw it happen with sshfs over FUSE. 8-/ Yet another reason to put in a check before performing the chmod. > Further, I've found some inconsistent behavior with ext4: chmod on the > magic symlink fails with EOPNOTSUPP as in Florian's test, but fchmod > on the O_PATH fd succeeds and changes the symlink mode. This is with > 5.4. Cany anyone else confirm this? Is it a problem? Interesting. Let me update the other thread.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.