diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-01-10 12:38:55 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2014-01-29 11:04:32 -0500 |
commit | 11afd4788619431f733524044304f20b746c7033 (patch) | |
tree | 410cbf75f634037d5f961438d869afa8ef8c572a | |
parent | 92cf22c22a3ac13d0006431213232b52a6d8f4fa (diff) |
Call userdel consistentlybefore-rhel7-Patch4-fix-leak.patch
When deleting the users files, we use -f, otherwise we don't. This
leads to inconsistent behaviour. Always pass -f.
-rw-r--r-- | src/daemon.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/daemon.c b/src/daemon.c index 9c7001b..38f6a47 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -1284,9 +1284,10 @@ daemon_delete_user_authorized_cb (Daemon *daemon, argv[5] = NULL; } else { - argv[1] = "--"; - argv[2] = pwent->pw_name; - argv[3] = NULL; + argv[1] = "-f"; + argv[2] = "--"; + argv[3] = pwent->pw_name; + argv[4] = NULL; } error = NULL; |