More robust way of choosing a non-existant uid (faster, too).
(Correct version -- the previous checkin was a keyboard slip.)
This commit is contained in:
parent
6308d510e9
commit
462d6e6484
|
@ -62,7 +62,7 @@ else:
|
|||
# Choose a non-existant uid.
|
||||
fakeuid = 4127
|
||||
while byuids.has_key(fakeuid):
|
||||
print 'fakeuid =', fakeuid
|
||||
fakeuid = (fakeuid * 3) % 0x10000
|
||||
|
||||
try:
|
||||
pwd.getpwuid(fakeuid)
|
||||
|
|
Loading…
Reference in New Issue