* 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.
+2007-08-19 Eric Blake <ebb9@byu.net>
+
+ Avoid consuming too much seekable input when yesno is used.
+ * bootstrap.conf (gnulib_modules): Add 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.
+
2007-08-18 Jim Meyering <jim@meyering.net>
Use new "idcache.h" header.
"cp -i --update older newer" no longer prompts; same for mv
+ "cp -i" now detects read errors on standard input, and no longer consumes
+ too much seekable input; same for ln, install, mv, and rm.
+
cut now diagnoses a range starting with zero (e.g., -f 0-2) as invalid;
before, it would treat it as if it started with 1 (-f 1-2).
c-strcase c-strtod
c-strtold calloc canon-host canonicalize chown cloexec
config-h configmake
- closeout
+ closein closeout
crypto/md5 crypto/sha1
cycle-check
d-ino d-type diacrit dirfd dirname dup2
cloexec.h
close-stream.c
close-stream.h
+closein.c
+closein.h
closeout.c
closeout.h
concatpath.c
fcntl.h
fcntl_.h
fd-safer.c
+fflush.c
file-has-acl.c
file-type.c
file-type.h
fopen-safer.c
fprintftime.c
fprintftime.h
+fpurge.c
+fpurge.h
+freading.c
+freading.h
free.c
fseeko.c
fstatat.c
cloexec.h
close-stream.c
close-stream.h
+closein.c
+closein.h
closeout.c
closeout.h
concatpath.c
fcntl.h
fcntl_.h
fd-safer.c
+fflush.c
file-has-acl.c
file-type.c
file-type.h
fopen-safer.c
fprintftime.c
fprintftime.h
+fpurge.c
+fpurge.h
+freading.c
+freading.h
free.c
fseeko.c
fstatat.c
clock_time.m4
cloexec.m4
close-stream.m4
+closein.m4
closeout.m4
codeset.m4
config-h.m4
fchdir.m4
fcntl-safer.m4
fcntl_h.m4
+fflush.m4
file-type.m4
fileblocks.m4
filemode.m4
fnmatch.m4
fpending.m4
fprintftime.m4
+fpurge.m4
+freading.m4
free.m4
fseeko.m4
fstypename.m4
clock_time.m4
cloexec.m4
close-stream.m4
+closein.m4
closeout.m4
codeset.m4
config-h.m4
fchdir.m4
fcntl-safer.m4
fcntl_h.m4
+fflush.m4
file-type.m4
fileblocks.m4
filemode.m4
fnmatch.m4
fpending.m4
fprintftime.m4
+fpurge.m4
+freading.m4
free.m4
fseeko.m4
fstypename.m4
+2007-08-19 Eric Blake <ebb9@byu.net>
+
+ * POTFILES.in: Add lib/closein.c.
+
2007-08-08 Jim Meyering <jim@meyering.net>
Adapt to gnulib's latest xstrtol change.
-----
- Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software
+ Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software
Foundation, Inc.
Copying and distribution of this file, with or without
# These are nominally temporary...
lib/acl.c
lib/argmatch.c
+lib/closein.c
lib/closeout.c
lib/error.c
lib/euidaccess-stat.c
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- atexit (close_stdout);
+ atexit (close_stdin);
selinux_enabled = (0 < is_selinux_enabled ());
cp_option_init (&x);
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- atexit (close_stdout);
+ atexit (close_stdin);
cp_option_init (&x);
/* `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
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. */
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- atexit (close_stdout);
+ atexit (close_stdin);
cp_option_init (&x);
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- atexit (close_stdout);
+ atexit (close_stdin);
rm_option_init (&x);
#define VERSION_OPTION_DESCRIPTION \
_(" --version output version information and exit\n")
+#include "closein.h"
#include "closeout.h"
#include "version-etc.h"