From 3554370304f40b20a7fbb03144b168d0cf0a0ddc Mon Sep 17 00:00:00 2001 From: Klaus Agnoletti Date: Tue, 13 Aug 2002 08:04:40 +0000 Subject: * An extra condition proved to be needed to ensure proper functionality when 'nobody' is prin ting. --- pdfdistiller | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pdfdistiller b/pdfdistiller index 3b1b494..c97b7dd 100755 --- a/pdfdistiller +++ b/pdfdistiller @@ -79,7 +79,10 @@ fi # - world readable # - owns to user specified in argument chmod a+r $OUTPUTFILENAME -if [ "$2" != "" ]; then + +#An extra argument in this statement proved to be needed to ensure that after entering +#the previous if-statement (in case user is nobody) this if-statement isn't entered as well.. +if [ "$2" != "" -a $2 != "nobody" ]; then if [ -x /usr/bin/mime-construct ]; then /usr/bin/mime-construct --to "$2" --subject "PDF print" --type application/pdf --attachment `basename $OUTPUTFILENAME` --file $OUTPUTFILENAME \ && rm $OUTPUTFILENAME -- cgit v1.2.3