r795: paranoia checks
[kai/samba.git] / 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.