bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18280: chmod: race condition


From: Paul Eggert
Subject: bug#18280: chmod: race condition
Date: Sun, 17 Aug 2014 07:45:48 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

Tobias Stoeckmann wrote:
For me, it sounds like configure should run a functionality test, calling
fchmodat with AT_SYMLINK_NOFOLLOW and see if it fails and ENOTSUP is set
in errno.  In that case, don't call fchmodat or force 0 for flags,
otherwise use AT_SYMLINK_NOFOLLOW.

Yes, that sounds like a reasonable way to move forward. At least, that is what I was thinking of doing in 2012. I never got around to it, partly because (although it's an improvement) it's not a complete fix for the race.





reply via email to

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