Description of problem: /usr/bin/smbprint derives the location of the spool directory from the last parameter passed to it (which is the acct file). It does this by means of \$$#, which works as long as $# expands to a single digit. On my system however, smbprint is called by LPRng with 22 parameters. This causes the above to expand to $22, which expands to <whatever is in $2>2 (i.e. a digit 2 appended to the value of $2). In order to avoid this braces are needed, as follows: \${$#} Version-Release number of selected component (if applicable): samba-2.2.7-2.7.2 LPRng-3.7.4-28.1 Linux version 2.4.18-27.7.x (bhcompile.redhat.com) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-112)) #1 Fri Mar 14 05:51:48 EST 2003
Created attachment 90699 [details] smbprint file, with my proposed change made in line 49
Unfortunatly, I didn't remember this one in time for the latest errata. It will be in the next one, however.