1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 04:27:30 +02:00
openwrt-xburst/openwrt/package/busybox/patches/160-tar_fix.patch

12 lines
486 B
Diff
Raw Normal View History

--- 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]);