From 6139077cfa1be70b3484b02cdc764bb64997145b Mon Sep 17 00:00:00 2001 From: Klaus Agnoletti Date: Fri, 9 Aug 2002 11:59:58 +0000 Subject: * Changed an if-statement to avoid problems when printing using samba and the nobody user. --- pdfdistiller | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pdfdistiller b/pdfdistiller index 7c4044a..3b1b494 100755 --- a/pdfdistiller +++ b/pdfdistiller @@ -51,7 +51,10 @@ echo "PDF directory: $PDFDIR" >> $LOGFILE # generate output filename OUTPUTFILENAME= -if [ "$2" = "" ]; then + +#I found out that when the user 'nobody' prints, the script tries to mail the PDF +#to that user - as a local mail. To avoid this, I changed the conditions in the if-statement below. +if [ "$2" = "" -o "$2" = "nobody" ]; then OUTPUTFILENAME="$PDFDIR/unknown-$PRINTTIME.pdf" else # OUTPUTFILENAME="$PDFDIR/${3//[^[:alnum:]]/_}.pdf" -- cgit v1.2.3