Bug 331 - Missing sudoers file causes core dump
Missing sudoers file causes core dump
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.7.0
Sun Solaris 2.x
: normal normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-03 08:50 MST by Martin Carpenter
Modified: 2009-02-03 09:00 MST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Carpenter 2009-02-03 08:50:01 MST
Installation:
./configure && make && make install


To reproduce:
# rm /etc/sudoers
^D
$ sudo
sudo: can't stat /etc/sudoers: No such file or directory
Segmentation Fault (core dumped)


Platform:
Solaris 10, SPARC
SunOS gronk 5.10 Generic_137111-03 sun4u sparc SUNW,Ultra-5_10


Backtrace from mdb:
> $C
ffbff650 libc.so.1`fileno(309a0, 0, 9875c, 0, ff26e2f4, 0)
ffbff748 sudo_file_open+0x28(ffffffff, 4, 0, 0, 44000, 4)
ffbff7b8 main+0x538(44bd8, ffbffa88, 43c00, 50000, 0, 43c00)
ffbff9a8 _start+0x5c(0, 0, 0, 0, 0, 0)
>
Comment 1 Todd C. Miller 2009-02-03 09:00:27 MST
Already fixed in cvs, will be in sudo 1.7.1.  There are no security implications.