Edit: Related post was removed.
]]>% bsdtar -xf magnifier-3.4.zip
# Omitting all lines but the last 2. The problem is the same: Path contains '..'
../magnifier-3.4/top.bmp: Path contains '..'
bsdtar: Error exit delayed from previous errors.
?
It seems to be only a matter of a missing --strip-components 1:
bsdtar --strip-components 1 -xf magnifier-3.4.zip
Succeeds to extract the archive.
I think the relevant makepkg code is:
% cat -n /usr/share/makepkg/source/file.sh | sed -n 120,132p
120 *)
121 # See if bsdtar can recognize the file
122 if bsdtar -tf "$file" -q '*' &>/dev/null; then
123 cmd="bsdtar"
124 else
125 return 0
126 fi ;;
127 esac
128
129 local ret=0
130 msg2 "$(gettext "Extracting %s with %s")" "$file" "$cmd"
131 if [[ $cmd = "bsdtar" ]]; then
132 $cmd -xf "$file" || ret=$?