From: Andreas Schwab Date: Sat, 24 Oct 2009 13:06:57 +0000 (+0200) Subject: Work around option parsing bug in the busybox tar implementation X-Git-Tag: v1.6.5.2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=36e561064e83d3f890f8fa128b3ca4e0d7691f10;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/templates/Makefile b/templates/Makefile index a12c6e214..408f0137a 100644 --- a/templates/Makefile +++ b/templates/Makefile @@ -50,4 +50,4 @@ clean: install: all $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(template_instdir_SQ)' (cd blt && $(TAR) cf - .) | \ - (cd '$(DESTDIR_SQ)$(template_instdir_SQ)' && umask 022 && $(TAR) xfo -) + (cd '$(DESTDIR_SQ)$(template_instdir_SQ)' && umask 022 && $(TAR) xof -)