On intel x86_65, if the config file contains lines consisting only of whitespace (tabs or spaces), sudosh segfaults.
Attaching GDB shows the problem arising:
(gdb) run
Starting program: /usr/bin/sudosh -i
Program received signal SIGSEGV, Segmentation fault.
0x00000000004030f0 in parse (o=0x60c520, file=0x7fff3375d080 "/etc/sudosh.conf") at parse.c:41
41 for (i = strlen(opt) - 1; i >= 0 && isspace(opt[i]); i--)
This is with sudosh 1.8.2 from rpmforge:
http://packages.sw.be/sudosh/sudosh-1.8.2-2.el5.rf.x86_64.rpm
Regards
Jonathan Barber
I am able to reproduce this.