Skip to content

Commit

Permalink
Merge branch 'support-larger-ids' of https://github.com/Cray/osc
Browse files Browse the repository at this point in the history
Since uid_t/gid_t are system dependent there is no reason to enforce
an "arbitrary" upper bound.
  • Loading branch information
marcus-h committed Jun 26, 2018
2 parents b730f88 + b42e6f5 commit 8728a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8728a07

Please sign in to comment.