diff options
author | Gerald Carter <jerry@samba.org> | 2004-05-20 13:40:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:38 -0500 |
commit | c087c51535982bd9db11e78db4064468f3507808 (patch) | |
tree | 715516a16b45743d528ca3056f9f6534bc4b140d /examples/printing | |
parent | 538b66f4e97e5e7b989e5533080f601d5b04c75e (diff) | |
download | samba-c087c51535982bd9db11e78db4064468f3507808.tar.gz samba-c087c51535982bd9db11e78db4064468f3507808.tar.xz samba-c087c51535982bd9db11e78db4064468f3507808.zip |
r795: paranoia checks
Diffstat (limited to 'examples/printing')
-rwxr-xr-x | examples/printing/smbprint | 6 |
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. |