Commit aff0403a by Derek Carter

remove UID/GID from output

parent c532a1c9
...@@ -187,11 +187,11 @@ def user_and_group(filename): ...@@ -187,11 +187,11 @@ def user_and_group(filename):
try: try:
user = pwd.getpwuid(uid)[0] user = pwd.getpwuid(uid)[0]
except KeyError: except KeyError:
user = 'UID' + str(uid) user = str(uid)
try: try:
group = grp.getgrgid(gid)[0] group = grp.getgrgid(gid)[0]
except KeyError: except KeyError:
group = 'GID' + str(gid) group = str(gid)
return (user, group) return (user, group)
def set_context_if_different(path, context, changed): def set_context_if_different(path, context, changed):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment