luseradd defaults to creating w/o need for -m (#32411)

and -M is incorrect in this case
This commit is contained in:
Brian Coca 2017-10-31 17:25:29 -04:00 committed by Matt Davis
parent 8c5cd9c530
commit 3e80f9caf4

View file

@ -396,9 +396,7 @@ class User(object):
cmd.append(self.password)
if self.create_home:
if self.local:
cmd.append('-M')
else:
if not self.local:
cmd.append('-m')
if self.skeleton is not None: