diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-02-15 15:58:08 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-02-15 15:59:16 -0800 |
commit | 75aababed45d0120d44baa76c5107d0ceb71fc59 (patch) | |
tree | 5b4d628544b8640e489e356d881ff72ad6ff4db1 /bootstrap.conf | |
parent | e5cfadd6c7fa08153e56b950e72801677f7d1fe8 (diff) | |
download | coreutils-75aababed45d0120d44baa76c5107d0ceb71fc59.tar.gz |
maint: use xsetmode, not xfreopen
This fixes a bug noted by Eric Blake. Code was using xfreopen to
change files to binary mode, but this fails for stdout when in
append mode. Such code should use xsetmode instead. This affects
only the port on platforms like MS-Windows which distiguish text
from binary I/O.
* bootstrap.conf (gnulib_modules):
Remove xfreopen and add xsetmode. Sort.
* src/base64.c (main):
* src/cat.c (main):
* src/cksum.c (cksum):
* src/head.c (head_file, main):
* src/md5sum.c (digest_file):
* src/od.c (open_next_file):
* src/split.c (main):
* src/sum.c (bsd_sum_file, sysv_sum_file):
* src/tac.c (tac_file, main):
* src/tail.c (tail_file):
* src/tee.c (tee_files):
* src/tr.c (main):
* src/wc.c (wc_file): Use xsetmode, not xfreopen.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r-- | bootstrap.conf | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstrap.conf b/bootstrap.conf index acec6f08c..a1e352353 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -35,8 +35,8 @@ gnulib_modules=" assert autobuild backupfile - base64 base32 + base64 buffer-lcm c-strcase c-strtod @@ -217,10 +217,10 @@ gnulib_modules=" sigaction smack ssize_t - statat stat-macros stat-size stat-time + statat stdbool stdlib-safer stpcpy @@ -269,7 +269,7 @@ gnulib_modules=" winsz-termios write-any-file xalloc - xfreopen + xdectoint xfts xgetcwd xgetgroups @@ -279,7 +279,7 @@ gnulib_modules=" xprintf xprintf-posix xreadlink - xdectoint + xsetmode xstrtod xstrtoimax xstrtol |