[2796] in SIPB bug reports
problem printing from xfig
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Tue May 5 14:07:59 1992
Date: Tue, 5 May 92 14:07:21 -0400
From: "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
To: mhpower@Athena.MIT.EDU
Cc: bug-sipb@Athena.MIT.EDU
In-Reply-To: mhpower@Athena.MIT.EDU's message of Mon, 04 May 92 15:16:59 EDT <9205041917.AA28843@podge>
From: mhpower@Athena.MIT.EDU
Date: Mon, 04 May 92 15:16:59 EDT
>Did you find out the name of the user who had this trouble?
I didn't get the person's name, but the file was in sjmiller's
directory, something like
/mit/sjmiller/sooahs/Draw/figs/Regressionanalysisoutput.fig
You may be right that the prcmd buffer overflowed, although I don't
think it would have been much more than 150 characters, i.e., if it
gets filled in with something like
fig2dev -Lps -c -P -m 1.000000 -l xxx /tmp/xfig-print123456 | lpr -J \
/mit/sjmiller/sooahs/Draw/figs/Regressionanalysisoutput.fig -Pw20-east-4
The reason it would overflow is that every character in the file name
being printed has a backslash put before it in order to quote special
shell characters before actually calling lpr. In other words, the
command would actually be
fig2dev -Lps -c -P -m 1.000000 -l xxx /tmp/xfig-print123456 | lpr -J \/\m\i\t\/\s\j\m\i\l\l\e\r\/\s\o\o\a\h\s\/\D\r\a\w\/\f\i\g\s\/\R\e\g\r\e\s\s\i\o\n\a\n\a\l\y\s\i\s\o\u\t\p\u\t\.\f\i\g -Pw20-east-4
and that's 200 characters.
jik