supersede: Avoid a failure when writing to /dev/null in Solaris zones.
commitfd47c1834c2bcb8772f7a320ab088d802b1ca649
authorBruno Haible <bruno@clisp.org>
Sun, 23 Aug 2020 17:37:17 +0000 (23 19:37 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 23 Aug 2020 17:37:17 +0000 (23 19:37 +0200)
tree410312d0ef3944d5a7a1a84b4ee7b575971fdbb0
parentf3808e88c188193d0011b4cdce3441719ac16d83
supersede: Avoid a failure when writing to /dev/null in Solaris zones.

Reported by Jörg Sonnenberger <joerg@netbsd.org>
via Thomas Klausner <tk@giga.or.at> in
<https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.

* lib/supersede.c (open_supersede): When opening an existing non-regular
file on Solaris, use O_CREAT although it should not be necessary.
ChangeLog
lib/supersede.c