summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-01-10 12:38:55 -0500
committerRay Strode <rstrode@redhat.com>2014-01-29 11:04:32 -0500
commit11afd4788619431f733524044304f20b746c7033 (patch)
tree410cbf75f634037d5f961438d869afa8ef8c572a
parent92cf22c22a3ac13d0006431213232b52a6d8f4fa (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.c7
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;