git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f5e40b
)
r795: paranoia checks
author
Gerald Carter
<jerry@samba.org>
Thu, 20 May 2004 13:40:16 +0000
(13:40 +0000)
committer
Gerald (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
patch
|
blob
|
history
diff --git
a/examples/printing/smbprint
b/examples/printing/smbprint
index e2bbdc2f16ee975a8181a899595885e630a55ec1..3d4b53f850a6580d58affae6bda0d3b5840762c3 100755
(executable)
--- 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.