diff options
Diffstat (limited to 'support/genhomedircon.py')
-rw-r--r-- | support/genhomedircon.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/genhomedircon.py b/support/genhomedircon.py index d5177ee4..b865a07c 100644 --- a/support/genhomedircon.py +++ b/support/genhomedircon.py @@ -51,7 +51,7 @@ def getStartingUID(): rc=getstatusoutput("grep -h '^UID_MIN' /etc/login.defs") if rc[0] == 0: uid_min = re.sub("^UID_MIN[^0-9]*", "", rc[1]) - #stip any comment from the end of the line + #strip any comment from the end of the line uid_min = uid_min.split("#")[0] uid_min = uid_min.strip() if int(uid_min) < starting_uid: @@ -59,7 +59,7 @@ def getStartingUID(): rc=getstatusoutput("grep -h '^LU_UIDNUMBER' /etc/libuser.conf") if rc[0] == 0: lu_uidnumber = re.sub("^LU_UIDNUMBER[^0-9]*", "", rc[1]) - #stip any comment from the end of the line + #strip any comment from the end of the line lu_uidnumber = re.sub("[ \t].*", "", lu_uidnumber) lu_uidnumber = lu_uidnumber.split("#")[0] lu_uidnumber = lu_uidnumber.strip() |