Red Hat Bugzilla – Bug 61983
lastlogin has problems if extremely high uid's present
Last modified: 2007-04-18 12:41:12 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.1.3 (X11; Linux i686; U;) Gecko/20020205
Description of problem:
In presence of extremely high UID's (like > 1000000) in the system lastlog fails
with "File too big" because it's not using the 64bit interface to file operations.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. add user with an UID > 1000000, set password
2. login as that user from console
3. run 'lastlog'
Actual Results: [pmatilai@godzilla SOURCES]$ lastlog
/var/log/lastlog: File too large
Expected Results: The usual lastlog-listing ... obviously :)
It should be made to use the 64bit file interface. Adding "-D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" to src/Makefile and recompile
fixes this but I didn't look at how to get that done from the spec-file.
In addition there's a very similar bug in 'sessreg' - see
And BTW this problem is also present on RHL 7.1 % 7.2...
The necessary changes will be added to shadow-utils-20000902-7 and later. Thanks!