Skip to content

Commit

Permalink
Use correct prefix for octal value
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Jul 16, 2024
1 parent d12eb49 commit ce9ba83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def lock(self, action):
lockfile = os.path.join(CONFIG.lockdir, self.dist.nick, action + '-' + self.name + '.lock')
mkdir(os.path.dirname(lockfile))
try:
file_object = os.open(lockfile, os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0600)
file_object = os.open(lockfile, os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0o0600)
info(6, '%s: Setting lock %s' % (self.dist.nick, lockfile))
os.write(file_object, '%d' % os.getpid())
os.close(file_object)
Expand Down

0 comments on commit ce9ba83

Please sign in to comment.