Bug 331

Summary: Missing sudoers file causes core dump
Product: Sudo Reporter: Martin Carpenter <mcarpenter>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: normal    
Version: 1.7.0   
Hardware: Sun   
OS: Solaris 2.x   

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.