pre-uplift off-by-one error in usermap path concatenation
authorTony Finch <dot@dotat.at>
Wed, 26 Nov 2014 17:28:30 +0000 (17:28 +0000)
committerTony Finch <dot@dotat.at>
Wed, 26 Nov 2014 17:28:30 +0000 (17:28 +0000)
ipreg-pre-uplift

index 0a9f652..c50f5e4 100755 (executable)
@@ -118,7 +118,7 @@ do
        case $# in
        1)      tar xf $f
                [ $1 != $d ] && mv $1 $d
-               remove=$1
+               remove=$1/
                ;;
        *)      mkdir $d
                cd $d
@@ -130,7 +130,7 @@ do
        mkdir -p ipreg-tarballs/$subdir
        mv $pathname ipreg-tarballs/$subdir
        tar tfv ipreg-tarballs/$subdir/$f |
-       tar2usermap -mipreg-tarballs/usermap "$remove" "$owd/$subdir/$d"
+       tar2usermap -mipreg-tarballs/usermap "$remove" "$owd/$subdir/$d/"
 done
 : $B case-insensitivity fixup for testing on Mac OS $D
 uclc() {