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