summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/printing/smbprint6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/printing/smbprint b/examples/printing/smbprint
index e2bbdc2f16..3d4b53f850 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.