From f40a1e0eae8cc2f5be8c7b77e855dd5a1349aba6 Mon Sep 17 00:00:00 2001 From: Matt Warren Date: Mon, 7 Oct 2013 10:47:12 -0400 Subject: [PATCH] addresses https://github.com/ansible/ansible/issues/4371 - adding -m to home directory modification --- system/user | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system/user b/system/user index 49dfcac9eca..46a2a35c14d 100644 --- a/system/user +++ b/system/user @@ -362,6 +362,7 @@ class User(object): cmd.append(self.comment) if self.home is not None and info[5] != self.home: + cmd.append('-m') cmd.append('-d') cmd.append(self.home) @@ -651,6 +652,7 @@ class FreeBsdUser(User): cmd.append(self.comment) if self.home is not None and info[5] != self.home: + cmd.append('-m') cmd.append('-d') cmd.append(self.home) @@ -837,6 +839,7 @@ class OpenBSDUser(User): cmd.append(self.comment) if self.home is not None and info[5] != self.home: + cmd.append('-m') cmd.append('-d') cmd.append(self.home) @@ -990,6 +993,7 @@ class NetBSDUser(User): cmd.append(self.comment) if self.home is not None and info[5] != self.home: + cmd.append('-m') cmd.append('-d') cmd.append(self.home) @@ -1149,6 +1153,7 @@ class SunOS(User): cmd.append(self.comment) if self.home is not None and info[5] != self.home: + cmd.append('-m') cmd.append('-d') cmd.append(self.home) @@ -1301,6 +1306,7 @@ class AIX(User): cmd.append(self.comment) if self.home is not None and info[5] != self.home: + cmd.append('-m') cmd.append('-d') cmd.append(self.home)