Fix 'resolve_file'

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5083 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-12-10 05:09:11 +00:00
parent 97f0e9ca6f
commit 54fe8291b6

View File

@ -869,9 +869,17 @@ resolve_file() # $1 = file name
/*) /*)
echo $1 echo $1
;; ;;
.)
echo $pwd
;;
./*) ./*)
echo ${pwd}${1#.} echo ${pwd}${1#.}
;; ;;
..)
cd ..
echo $PWD
cd $pwd
;;
../*) ../*)
cd .. cd ..
resolve_file ${1#../} resolve_file ${1#../}