diff options
author | Pádraig Brady <P@draigBrady.com> | 2010-12-18 03:25:49 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2010-12-19 00:40:27 +0000 |
commit | 0eaa993ae64d75c7b9da62c99e9e5f617b6a248d (patch) | |
tree | f6c8c108faa2d0e36b91576d662d7843bae6da9e | |
parent | e66948c3b59045bf8b9f6bd1e0dcc3bb93488cab (diff) | |
download | coreutils-0eaa993ae64d75c7b9da62c99e9e5f617b6a248d.tar.xz |
wc: fix a possible hang with --files0-from
* src/wc.c (main): exit when we get a read error on
the --files0-from file, rather than retrying and
spinning the CPU
-rw-r--r-- | src/wc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -726,8 +726,8 @@ main (int argc, char **argv) switch (ai_err) { case AI_ERR_READ: - error (0, errno, _("%s: read error"), quote (files_from)); - skip_file = true; + error (EXIT_FAILURE, errno, _("%s: read error"), + quote (files_from)); continue; case AI_ERR_MEM: xalloc_die (); |