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 | 96c6bf93d52c562dfabe25a2901ecb4e54f5a06f (patch) | |
tree | b8b52435b1531fbf804631a1f127d3087b7d0b39 | |
parent | 0f5e40b14ee619725507eb466d3a8d6fd893a143 (diff) | |
download | samba-96c6bf93d52c562dfabe25a2901ecb4e54f5a06f.tar.gz samba-96c6bf93d52c562dfabe25a2901ecb4e54f5a06f.tar.bz2 samba-96c6bf93d52c562dfabe25a2901ecb4e54f5a06f.zip |
r795: paranoia checks
(This used to be commit c087c51535982bd9db11e78db4064468f3507808)
-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 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. |