Skip to content

Commit 36e5610

Browse files
andreas-schwabgitster
authored andcommitted
Work around option parsing bug in the busybox tar implementation
The first argument of the tar command is interpreted as a bundle of letters specifying the mode of operation and additional options, with any option arguments taken from subsequent words on the command line as needed. The implementation of tar in busybox treats this bundle as if preceded by a dash and then parses it by getopt rules, which mishandles 'tar xfo -'. Use 'tar xof -' instead to work this around. Signed-off-by: Andreas Schwab <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2cf6b4b commit 36e5610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ clean:
5050
install: all
5151
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(template_instdir_SQ)'
5252
(cd blt && $(TAR) cf - .) | \
53-
(cd '$(DESTDIR_SQ)$(template_instdir_SQ)' && umask 022 && $(TAR) xfo -)
53+
(cd '$(DESTDIR_SQ)$(template_instdir_SQ)' && umask 022 && $(TAR) xof -)

0 commit comments

Comments
 (0)