]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
subst: work around an NFS bug
authorTheodore Ts'o <tytso@mit.edu>
Sat, 19 Sep 2015 01:37:53 +0000 (21:37 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 19 Sep 2015 01:37:53 +0000 (21:37 -0400)
commite5a82003d1b3b7ea01f60dadb49c3bbc60e4ebb7
treeb135a6330773723babbc22790433ca80243e65f4
parent2334bd3ae56a4a8eff8e129da3c7aeec9672c6e1
subst: work around an NFS bug

When running on NFS, opening files with 0444 perms for writing can
sometimes fail.  This is arguably an NFS server bug, but work around
it by creating the file with 0644 permissions, and only change the
permissions to be 0444 right before we close the file.

URL: https://bugs.gentoo.org/550986
Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
util/subst.c