Skip to content

Commit

Permalink
T740: force deletion of user home dir when deleting the user.
Browse files Browse the repository at this point in the history
stderr is silenced to prevent useless error messages about the mail dir not being found.
  • Loading branch information
dmbaturin committed Nov 12, 2018
1 parent 018860f commit 299cb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Vyatta/Login/User.pm
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ sub _delete_user {
}
system("pkill -9 -u $user");

system("userdel $user") == 0
system("userdel -r $user 2>/dev/null") == 0
or die "userdel of $user failed: $?\n";
}
}
Expand Down

0 comments on commit 299cb67

Please sign in to comment.