From 96c6bf93d52c562dfabe25a2901ecb4e54f5a06f Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 20 May 2004 13:40:16 +0000 Subject: r795: paranoia checks (This used to be commit c087c51535982bd9db11e78db4064468f3507808) --- examples/printing/smbprint | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples/printing/smbprint') 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. -- cgit