1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 09:46:19 +02:00

Merge branch 'support-larger-ids' of https://github.com/Cray/osc

Since uid_t/gid_t are system dependent there is no reason to enforce
an "arbitrary" upper bound.
This commit is contained in:
Marcus Huewe 2018-06-26 09:12:13 +02:00
commit 8728a071ca

View File

@ -596,7 +596,7 @@ def main(apiurl, opts, argv):
if opts.build_uid:
build_uid = opts.build_uid
if build_uid:
buildidre = re.compile('^[0-9]{1,5}:[0-9]{1,5}$')
buildidre = re.compile('^[0-9]+:[0-9]+$')
if build_uid == 'caller':
buildargs.append('--uid=%s:%s' % (os.getuid(), os.getgid()))
elif buildidre.match(build_uid):