summaryrefslogtreecommitdiff
path: root/loginutils/sulogin.c
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils/sulogin.c')
-rw-r--r--loginutils/sulogin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c
index fef3760..a2238d4 100644
--- a/loginutils/sulogin.c
+++ b/loginutils/sulogin.c
@@ -55,8 +55,8 @@ int sulogin_main(int argc, char **argv)
if (argv[optind]) {
close(0);
close(1);
- close(2);
dup(xopen(argv[optind], O_RDWR));
+ close(2);
dup(0);
}