diff options
author | Ron Yorston <rmy@pobox.com> | 2013-08-27 16:10:53 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2013-08-27 16:10:53 +0100 |
commit | 3fd34651ea72ea1c335d3170f234cb0517fd897f (patch) | |
tree | 36e8fc40cffd464ffda4759020777dd3ca23ca31 /archival/tar.c | |
parent | e3ac39098326de084a805d0dd31db9666b734f20 (diff) | |
parent | d6ae4fb446daedfe3073d67be655942e9fa7eb18 (diff) | |
download | busybox-w32-3fd34651ea72ea1c335d3170f234cb0517fd897f.tar.gz busybox-w32-3fd34651ea72ea1c335d3170f234cb0517fd897f.tar.bz2 busybox-w32-3fd34651ea72ea1c335d3170f234cb0517fd897f.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'archival/tar.c')
-rw-r--r-- | archival/tar.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/archival/tar.c b/archival/tar.c index 648d1256d..3129781d2 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -569,7 +569,7 @@ static void NOINLINE vfork_compressor(int tar_fd, int gzip) | |||
569 | xmove_fd(gzipDataPipe.rd, 0); | 569 | xmove_fd(gzipDataPipe.rd, 0); |
570 | xmove_fd(tar_fd, 1); | 570 | xmove_fd(tar_fd, 1); |
571 | /* exec gzip/bzip2 program/applet */ | 571 | /* exec gzip/bzip2 program/applet */ |
572 | BB_EXECLP(zip_exec, zip_exec, "-f", NULL); | 572 | BB_EXECLP(zip_exec, zip_exec, "-f", (char *)0); |
573 | vfork_exec_errno = errno; | 573 | vfork_exec_errno = errno; |
574 | _exit(EXIT_FAILURE); | 574 | _exit(EXIT_FAILURE); |
575 | } | 575 | } |
@@ -681,14 +681,12 @@ static llist_t *append_file_list_to_list(llist_t *list) | |||
681 | char *cp = last_char_is(line, '/'); | 681 | char *cp = last_char_is(line, '/'); |
682 | if (cp > line) | 682 | if (cp > line) |
683 | *cp = '\0'; | 683 | *cp = '\0'; |
684 | llist_add_to(&newlist, line); | 684 | llist_add_to_end(&newlist, line); |
685 | } | 685 | } |
686 | fclose(src_stream); | 686 | fclose(src_stream); |
687 | } | 687 | } |
688 | return newlist; | 688 | return newlist; |
689 | } | 689 | } |
690 | #else | ||
691 | # define append_file_list_to_list(x) 0 | ||
692 | #endif | 690 | #endif |
693 | 691 | ||
694 | //usage:#define tar_trivial_usage | 692 | //usage:#define tar_trivial_usage |