Blob Blame Raw
From 77e2d73723aaef376d97597a61328619b8a204c3 Mon Sep 17 00:00:00 2001
From: Matthias Clasen <mclasen@redhat.com>
Date: Fri, 10 Jan 2014 12:38:55 -0500
Subject: [PATCH] Call userdel consistently

When deleting the users files, we use -f, otherwise we don't. This
leads to inconsistent behaviour. Always pass -f.
---
 src/daemon.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/daemon.c b/src/daemon.c
index b2720f4..cb36f01 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -1289,9 +1289,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;
-- 
1.8.4.2