Commit 11afd478 authored by Matthias Clasen's avatar Matthias Clasen Committed by Ray Strode

Call userdel consistently

When deleting the users files, we use -f, otherwise we don't. This
leads to inconsistent behaviour. Always pass -f.
parent 92cf22c2
...@@ -1284,9 +1284,10 @@ daemon_delete_user_authorized_cb (Daemon *daemon, ...@@ -1284,9 +1284,10 @@ daemon_delete_user_authorized_cb (Daemon *daemon,
argv[5] = NULL; argv[5] = NULL;
} }
else { else {
argv[1] = "--"; argv[1] = "-f";
argv[2] = pwent->pw_name; argv[2] = "--";
argv[3] = NULL; argv[3] = pwent->pw_name;
argv[4] = NULL;
} }
error = NULL; error = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment