Kaydet (Commit) 6308d510 authored tarafından Guido van Rossum's avatar Guido van Rossum

More robust way of choosing a non-existant uid (faster, too).

üst 037b2205
......@@ -59,10 +59,10 @@ except KeyError:
else:
print 'fakename', fakename, 'did not except pwd.getpwnam()'
uids = byuids.keys()
uids.sort()
uids.reverse()
fakeuid = uids[0] + 1
# Choose a non-existant uid.
fakeuid = 4127
while byuids.has_key(fakeuid):
print 'fakeuid =', fakeuid
try:
pwd.getpwuid(fakeuid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment