summaryrefslogtreecommitdiff
path: root/src/install.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2007-08-20 17:01:18 +0200
committerJim Meyering <jim@meyering.net>2007-08-20 17:03:45 +0200
commitfeed02af9d09527745d10138cc08da9ed0702b7e (patch)
treeacf5df1c403e748267ce956baf720e0bbd26ca0e /src/install.c
parenta05ae2f7168f42d290512ae919bb9ce4aa4d7063 (diff)
downloadcoreutils-feed02af9d09527745d10138cc08da9ed0702b7e.tar.gz
coreutils-feed02af9d09527745d10138cc08da9ed0702b7e.tar.bz2
coreutils-feed02af9d09527745d10138cc08da9ed0702b7e.zip
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.
Diffstat (limited to 'src/install.c')
-rw-r--r--src/install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install.c b/src/install.c
index 28e2dd50a..34f61ffba 100644
--- a/src/install.c
+++ b/src/install.c
@@ -290,7 +290,7 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- atexit (close_stdout);
+ atexit (close_stdin);
cp_option_init (&x);