* libmisc/user_busy.c, src/userdel.c, src/usermod.c: Warn in

user_busy() rather than in src/userdel.c or src/usermod.c to
	provide more accurate failure cause (user is logged in or user
	still executes processes).
This commit is contained in:
nekral-guest
2011-02-16 20:46:27 +00:00
parent f4b544786c
commit ee163bed33
3 changed files with 7 additions and 6 deletions

View File

@ -1735,9 +1735,6 @@ int main (int argc, char **argv)
*/
if ( (uflg || lflg || dflg)
&& (user_busy (user_name, user_id) != 0)) {
fprintf (stderr,
_("%s: user %s is currently logged in\n"),
Prog, user_name);
exit (E_USER_BUSY);
}