mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(usage): Don't call close_stdout here.
(main): Use close_stdout via atexit. Now `su --version > /dev/full' fails, as it should. Somehow, the change of 2000-05-07 that purports to fix this was not checked in.
This commit is contained in:
1 parent
c03aeeae23
commit
ec5c04d7d8
1 file changed
+2
-1
@@ -452,7 +452,6 @@ Change the effective user id and group id to that of USER.\n\
|
||||
A mere - implies -l. If USER not given, assume root.\n\
|
||||
"), stdout);
|
||||
printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
|
||||
close_stdout ();
|
||||
}
|
||||
exit (status);
|
||||
}
|
||||
@@ -474,6 +473,8 @@ main (int argc, char **argv)
|
||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||
textdomain (PACKAGE);
|
||||
|
||||
atexit (close_stdout);
|
||||
|
||||
fast_startup = 0;
|
||||
simulate_login = 0;
|
||||
change_environment = 1;
|
||||
|
||||
Reference in new issue
Block a user