summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/Vyatta/Login/User.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Vyatta/Login/User.pm b/lib/Vyatta/Login/User.pm
index afc3cf53..e6acdf61 100755
--- a/lib/Vyatta/Login/User.pm
+++ b/lib/Vyatta/Login/User.pm
@@ -115,7 +115,9 @@ sub _delete_user {
}
system("pkill -9 -u $user");
- system("userdel $user") == 0
+ # Have to use -f since bb telnetd does not write correct utmp/wtmp
+ # login records!
+ system("userdel -f $user") == 0
or die "userdel of $user failed: $?\n";
}
}