fix misc typos

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
Christian Göttsche 2024-02-22 17:22:50 +01:00
parent c781fb74c9
commit bdd5036d7a
3 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ define(`gen_require',`
')
')
# helper function, since m4 wont expand macros
# helper function, since m4 will not expand macros
# if a line is a comment (#):
define(`policy_m4_comment',`
##### $2 depth: $1

View File

@ -15,7 +15,7 @@ define(`gen_cats',`decl_cats(0,decr($1))')
#
# gen_sens(N)
#
# declares sensitivites s0 to s(N-1) with dominance
# declares sensitivities s0 to s(N-1) with dominance
# in increasing numeric order with s0 lowest, s(N-1) highest
#
define(`decl_sens',`dnl

View File

@ -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()