From feed02af9d09527745d10138cc08da9ed0702b7e Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 20 Aug 2007 17:01:18 +0200 Subject: Avoid consuming too much seekable input when yesno is used. * bootstrap.conf (gnulib_modules): Grab closein. * src/system.h (includes): Also include closein.h. * src/mv.c (main): Use close_stdin, not close_stdout. * src/cp.c (main): Likewise. * src/ln.c (main): Likewise. * src/rm.c (main): Likewise. * src/install.c (main): Likewise. * NEWS: Document the fix. --- src/ln.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ln.c') diff --git a/src/ln.c b/src/ln.c index aec8b36b3..3ddcfdfff 100644 --- a/src/ln.c +++ b/src/ln.c @@ -1,5 +1,5 @@ /* `ln' program to create links between files. - Copyright (C) 1986, 1989-1991, 1995-2006 Free Software Foundation, Inc. + Copyright (C) 1986, 1989-1991, 1995-2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -398,7 +398,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - atexit (close_stdout); + atexit (close_stdin); /* FIXME: consider not calling getenv for SIMPLE_BACKUP_SUFFIX unless we'll actually use backup_suffix_string. */ -- cgit v1.2.3-54-g00ecf