add fix for tar command line (thx matled)
authorFelix Fietkau <nbd@openwrt.org>
Mon, 22 Aug 2005 00:30:06 +0000 (00:30 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 22 Aug 2005 00:30:06 +0000 (00:30 +0000)
SVN-Revision: 1713

openwrt/package/busybox/patches/160-tar_fix.patch [new file with mode: 0644]

diff --git a/openwrt/package/busybox/patches/160-tar_fix.patch b/openwrt/package/busybox/patches/160-tar_fix.patch
new file mode 100644 (file)
index 0000000..32358cf
--- /dev/null
@@ -0,0 +1,11 @@
+--- busybox-1.00/archival/tar.c.orig   2005-08-13 12:41:09.000000000 +0200
++++ busybox-1.00/archival/tar.c        2005-08-13 12:39:50.000000000 +0200
+@@ -798,7 +798,7 @@
+       /* TODO: This is the same as in ar, separate function ? */
+       while (optind < argc) {
+               char *filename_ptr = last_char_is(argv[optind], '/');
+-              if (filename_ptr) {
++              if (argv[optind] != filename_ptr && filename_ptr) {
+                       *filename_ptr = '\0';
+               }
+               tar_handle->accept = llist_add_to(tar_handle->accept, argv[optind]);