summaryrefslogtreecommitdiff
path: root/src/cat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cat.c')
-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);
}