summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-12-14 18:09:04 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-12-14 18:09:04 +0000
commitdcc1bc175949754fe5b2296445446bd127f57597 (patch)
tree611f967c18ad7bdbf3db87bba075b82eeb9e2e7b /src
parent6d577b6fb4772cd93b2443474d382b6b56ab922b (diff)
downloadcoreutils-dcc1bc175949754fe5b2296445446bd127f57597.tar.xz
Undo previous change.
Diffstat (limited to 'src')
-rw-r--r--src/cat.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cat.c b/src/cat.c
index 307a51644..b08e91e7d 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -768,8 +768,5 @@ main (int argc, char **argv)
if (have_read_stdin && close (STDIN_FILENO) < 0)
error (EXIT_FAILURE, errno, _("closing standard input"));
- if (close (STDOUT_FILENO) != 0)
- error (EXIT_FAILURE, errno, _("write error"));
-
exit (ok ? EXIT_SUCCESS : EXIT_FAILURE);
}