diff options
-rw-r--r-- | src/filter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/filter.c b/src/filter.c index aebc2fc..c58406d 100644 --- a/src/filter.c +++ b/src/filter.c @@ -167,6 +167,8 @@ clearerr(stdin); flexfatal (_("dup2(pipes[0],0)")); close (pipes[0]); fseek (stdin, 0, SEEK_CUR); + ungetc(' ', stdin); /* still an evil hack, but one that works better */ + (void)fgetc(stdin); /* on NetBSD than the fseek attempt does */ /* run as a filter, either internally or by exec */ if (chain->filter_func) { |