From 6ea679cb602ad9095231800947a5eeec7a16bbbb Mon Sep 17 00:00:00 2001 From: Darksider3 Date: Tue, 22 Oct 2019 13:50:14 +0200 Subject: [PATCH] System: userdel returns 6 when no maildir is deleted but homedir is So we agree on that one! --- private/lib/System.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private/lib/System.py b/private/lib/System.py index 2cf660f..17de845 100644 --- a/private/lib/System.py +++ b/private/lib/System.py @@ -181,7 +181,7 @@ class System: return True else: ret = subprocess.call(cc) - if ret != 0 or ret != 6: + if ret != 0 and ret != 6: raise lib.UserExceptions.UnknownReturnCode( f"Could not delete user with command {cc}. Return code: {ret}") return True