summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-05-20 13:40:16 +0000
committerGerald Carter <jerry@samba.org>2004-05-20 13:40:16 +0000
commitbc5c79e24d8ea7b2b62f4055218e65e97bcc412a (patch)
treeb8a6880a8144c5cf96228b746808682bd276cd93 /examples
parent401a827672f8f641eaed826791ae45c8c847b20c (diff)
downloadsamba-bc5c79e24d8ea7b2b62f4055218e65e97bcc412a.tar.gz
samba-bc5c79e24d8ea7b2b62f4055218e65e97bcc412a.tar.xz
samba-bc5c79e24d8ea7b2b62f4055218e65e97bcc412a.zip
r795: paranoia checks
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/printing/smbprint6
1 files changed, 6 insertions, 0 deletions
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.