mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-29 03:15:31 +02:00
add fix for tar command line (thx matled)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1714 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
83c9398774
commit
7dc55e43d6
11
openwrt/package/busybox/patches/160-tar_fix.patch
Normal file
11
openwrt/package/busybox/patches/160-tar_fix.patch
Normal file
@ -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]);
|
Loading…
Reference in New Issue
Block a user