]> git.ipfire.org Git - thirdparty/tar.git/commit
Actually prefer /dev/full over /dev/null as a replacement for stdin
authorSergey Poznyakoff <gray@gnu.org>
Fri, 8 Jan 2021 15:34:19 +0000 (17:34 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Fri, 8 Jan 2021 15:46:32 +0000 (17:46 +0200)
commite4d1edadefdeefcca3b72ec32744c52020fe4642
treed2b5096292d4088045c2c882b4fd413bf33b8136
parent0836a5114770e12ef4f4ebb3972868ba844f43f5
Actually prefer /dev/full over /dev/null as a replacement for stdin

* lib/stdopen.c (stdopen): Fix improper condition.
Avoid leaking extra file descriptor.
* src/tar.c (main): Set name of the stdout for diagnostics.
Bail out if stdopen fails.
lib/stdopen.c
src/tar.c