aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2024-02-22 17:22:50 +0100
committerKenton Groombridge <concord@gentoo.org>2024-03-01 12:05:34 -0500
commit85d57ceba1e3c39f6fac27a32b39fb6539166552 (patch)
tree73c1b062a48a10c1438ab1dfc1cf7b2d27940b2c /support
parentsupport/genhomedircon: support usr prefixed paths (diff)
downloadhardened-refpolicy-85d57ceba1e3c39f6fac27a32b39fb6539166552.tar.gz
hardened-refpolicy-85d57ceba1e3c39f6fac27a32b39fb6539166552.tar.bz2
hardened-refpolicy-85d57ceba1e3c39f6fac27a32b39fb6539166552.zip
fix misc typos
Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Signed-off-by: Kenton Groombridge <concord@gentoo.org>
Diffstat (limited to 'support')
-rw-r--r--support/genhomedircon.py4
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()