From 2c289c0f52072926818bfd23760d06348da4c147 Mon Sep 17 00:00:00 2001 From: Louwrentius Date: Sun, 22 Mar 2009 09:59:47 +0000 Subject: [PATCH] fixin g filename sanitation --- branches/distributed-ppss/ppss.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/branches/distributed-ppss/ppss.sh b/branches/distributed-ppss/ppss.sh index 49c8825..988a633 100755 --- a/branches/distributed-ppss/ppss.sh +++ b/branches/distributed-ppss/ppss.sh @@ -964,7 +964,16 @@ lock_item () { then ITEM="$1" - LOCK_FILE_NAME=`echo "$ITEM" |sed s/^\\\.//g | sed s/^\\\.\\\.//g | sed s/\\\///g | sed s/\\ //g | sed s/\\'/\\\\\\\\\\\\\\'/g | sed s/\&/\\\\\\\\\\\\\\&/g | sed s/\(/\\\\\\\\\\(/g | sed s/\)/\\\\\\\\\\)/g ` + LOCK_FILE_NAME=`echo "$ITEM" | \ + sed s/^\\\.//g | \ + sed s/^\\\.\\\.//g | \ + sed s/^\\\///g | \ + sed s/\\\//\\\\\\ /g | \ + sed s/\\ /\\\\\\\\\\\\\\ /g | \ + sed s/\\'/\\\\\\\\\\\\\\'/g | \ + sed s/\&/\\\\\\\\\\\\\\&/g | \ + sed s/\(/\\\\\\\\\\(/g | \ + sed s/\)/\\\\\\\\\\)/g ` echo " ---> $LOCK_FILE_NAME" ITEM_LOCK_FILE="$ITEM_LOCK_DIR/$LOCK_FILE_NAME"