If you enter any command in "lpc" e.g. [root@research /root]# lpc lpc> status lpc will dump core [root@research /root]# rpm -qf `which lpc` lpr-0.35-1
what's your /etc/printcap look like?
I still can't reproduce this. Can you get a stack trace?
ack, could you try the debug version at: http://charlotte.redhat.com/~notting/ftp/lpr/lpr-0.35-1debug.i386.rpm, and get a stack trace from that?
Fixed here: --- lpc.c.orig Mon Jul 12 10:52:42 1999 +++ lpc.c Mon Jul 12 12:39:27 1999 @@ -180,7 +180,9 @@ { register char *cp; register char **argp = margv; - int n; + /* the compiler doesn't initialize n, so it's value is bogus + and the for loop terminates without doing anything */ + int n = 0; margc = 0; for (cp = cmdline; *cp && (cp - cmdline) < sizeof(cmdline) && n < 20; n++) {
Thanks for the patch & tracking this down. It's rather obvious in hindsight. Fixed in lpr-0.38-2.