From 73a902bb3dc421c639592a34492dce5b95ae1d47 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 7 May 2000 14:48:25 +0000 Subject: [PATCH] Include "closeout.h". (main): Call atexit with close_stdout. --- login-utils/su.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/login-utils/su.c b/login-utils/su.c index 35a6b21fbe..5b78ed214a 100644 --- a/login-utils/su.c +++ b/login-utils/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 .")); + close_stdout (); } exit (status); } -- 2.47.3