X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=examples%2Fprinting%2Fsmbprint;h=3d4b53f850a6580d58affae6bda0d3b5840762c3;hb=7194fc6a690722e5c896ee367bcba659d131fa85;hp=e2bbdc2f16ee975a8181a899595885e630a55ec1;hpb=b8f32d608fb68bd3339daba8fe93724f8f70a8ab;p=ira%2Fwip.git diff --git a/examples/printing/smbprint b/examples/printing/smbprint index e2bbdc2f16e..3d4b53f850a 100755 --- a/examples/printing/smbprint +++ b/examples/printing/smbprint @@ -124,6 +124,12 @@ if [ ! -O $logdir ]; then debug="" fi +touch $debugfile +if [ -h $debugfile ]; then + echo "$debugful is a symlink. Turning off debugging!" + debug="" +fi + ## ## We should be safe at this point to create the log file ## without fear of a symlink attack -- move on to more script work.