Commits

Massimiliano Torromeo  committed 5bd3ac6

Force uid and gid to int type. chown/setuid/setgid only accept ints

  • Participants
  • Parent commits 4c81c79

Comments (0)

Files changed (1)

File simpledaemon/base.py

     uid = cp.get(section, 'uid')
     if uid:
         try:
-            int(uid)
+            uid = int(uid)
         except ValueError:
             # convert user name to uid
             try:
     gid = cp.get(section, 'gid')
     if gid:
         try:
-            int(gid)
+            gid = int(gid)
         except ValueError:
             # convert group name to gid
             try: