Don't close stdin early in sed(1)

Fix by emg.
This commit is contained in:
sin 2015-04-09 15:31:41 +01:00
parent dd395693d4
commit ea819714c2

2
sed.c
View File

@ -1105,7 +1105,7 @@ next_file(void)
if (file == stdin)
clearerr(file);
if (file)
else if (file)
fshut(file, "<file>");
file = NULL;