summaryrefslogtreecommitdiff
path: root/src/su.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-07 14:48:25 +0000
committerJim Meyering <jim@meyering.net>2000-05-07 14:48:25 +0000
commita3d40a9447e08adf7783f1e096463e64ed82f761 (patch)
tree63880095aaf5a4e9442069078adb3b4e908bff30 /src/su.c
parent309c1c3e47655f610c3c169bc19de9d4a3fc92a1 (diff)
downloadcoreutils-a3d40a9447e08adf7783f1e096463e64ed82f761.tar.xz
Include "closeout.h".
(main): Call atexit with close_stdout.
Diffstat (limited to 'src/su.c')
-rw-r--r--src/su.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/su.c b/src/su.c
index 35a6b21fb..5b78ed214 100644
--- a/src/su.c
+++ b/src/su.c
@@ -82,6 +82,7 @@
#define getusershell _getusershell_sys_proto_
#include "system.h"
+#include "closeout.h"
#undef getusershell
@@ -449,6 +450,7 @@ Change the effective user id and group id to that of USER.\n\
A mere - implies -l. If USER not given, assume root.\n\
"));
puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
+ close_stdout ();
}
exit (status);
}