From bc5c79e24d8ea7b2b62f4055218e65e97bcc412a Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 20 May 2004 13:40:16 +0000 Subject: [PATCH] r795: paranoia checks --- examples/printing/smbprint | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- 2.11.4.GIT