[hackers] [sbase] Don't close stdin early in sed(1) || sin

From: <git_AT_suckless.org>
Date: Thu, 9 Apr 2015 16:34:02 +0200 (CEST)

commit ea819714c22e5a7feed13107b6e1662b3a6412cd
Author: sin <sin_AT_2f30.org>
Date: Thu Apr 9 15:31:41 2015 +0100

    Don't close stdin early in sed(1)
    
    Fix by emg.

diff --git a/sed.c b/sed.c
index ec8c290..6b10eb6 100644
--- a/sed.c
+++ b/sed.c
_AT_@ -1105,7 +1105,7 @@ next_file(void)
 
         if (file == stdin)
                 clearerr(file);
- if (file)
+ else if (file)
                 fshut(file, "<file>");
         file = NULL;
 
Received on Thu Apr 09 2015 - 16:34:02 CEST

This archive was generated by hypermail 2.3.0 : Thu Apr 09 2015 - 16:36:09 CEST