su: endpwent on exit
This commit is contained in:
parent
8375701bf6
commit
33ed6e5c17
@ -87,6 +87,7 @@ void show_prompt()
|
||||
username = "??";
|
||||
}
|
||||
else { username = user->pw_name; }
|
||||
atexit(endpwent);
|
||||
}
|
||||
if (WEXITSTATUS(status)) { printf("%d [%s]> ", WEXITSTATUS(status), username); }
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user