Skip to content

Commit 30510ef

Browse files
Allow setting chown with ID 0. See #42
#42
1 parent 75f1ae2 commit 30510ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/concurrent_log_handler/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -561,10 +561,10 @@ def do_gzip(self, input_filename):
561561
return
562562

563563
def _do_chown_and_chmod(self, filename):
564-
if self._set_uid and self._set_gid:
564+
if self._set_uid is not None and self._set_gid is not None:
565565
os.chown(filename, self._set_uid, self._set_gid)
566566

567-
if self.chmod and os.chmod:
567+
if self.chmod is not None and os.chmod:
568568
os.chmod(filename, self.chmod)
569569

570570

0 commit comments

Comments
 (0)