Merge "debian: Fix openrc sourcing"

This commit is contained in:
Zuul 2022-01-28 18:58:07 +00:00 committed by Gerrit Code Review
commit c466472ed3

View File

@ -31,7 +31,7 @@ Index: keyring-5.3/keyrings/alt/file_base.py
+ if os.path.isfile(lockdir + "/" + lockfile):
+ import stat
+ import grp
+ if oct(stat.S_IMODE(os.stat(lockdir + "/" + lockfile).st_mode)) != '0770':
+ if oct(stat.S_IMODE(os.stat(lockdir + "/" + lockfile).st_mode)) != '0o770':
+ # Must have the lock file with the correct group and permissisions g+rw
+ os.chmod(lockdir + "/" + lockfile, stat.S_IRWXG | stat.S_IRWXU)
+ groupinfo = grp.getgrnam('sys_protected')