Merge pull request #25078 from terminalmage/fix-mac-uid

Use smaller number for upper limit of mac_user's _first_avail_uid helper function
This commit is contained in:
Thomas S Hatch 2015-06-30 14:53:24 -06:00
commit 58d933cfa8

View file

@ -63,7 +63,7 @@ def _dscl(cmd, ctype='create'):
def _first_avail_uid():
uids = set(x.pw_uid for x in pwd.getpwall())
for idx in range(501, 2 ** 32):
for idx in range(501, 2 ** 24):
if idx not in uids:
return idx