r795: paranoia checks
authorGerald Carter <jerry@samba.org>
Thu, 20 May 2004 13:40:16 +0000 (13:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:51:38 +0000 (10:51 -0500)
(This used to be commit c087c51535982bd9db11e78db4064468f3507808)

examples/printing/smbprint

index e2bbdc2f16ee975a8181a899595885e630a55ec1..3d4b53f850a6580d58affae6bda0d3b5840762c3 100755 (executable)
@@ -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.