diff options
author | Gerald Carter <jerry@samba.org> | 2004-05-20 13:40:16 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-05-20 13:40:16 +0000 |
commit | bc5c79e24d8ea7b2b62f4055218e65e97bcc412a (patch) | |
tree | b8a6880a8144c5cf96228b746808682bd276cd93 /examples | |
parent | 401a827672f8f641eaed826791ae45c8c847b20c (diff) | |
download | samba-bc5c79e24d8ea7b2b62f4055218e65e97bcc412a.tar.gz samba-bc5c79e24d8ea7b2b62f4055218e65e97bcc412a.tar.xz samba-bc5c79e24d8ea7b2b62f4055218e65e97bcc412a.zip |
r795: paranoia checks
Diffstat (limited to 'examples')
-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. |