aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/Config.src4
-rw-r--r--archival/Kbuild.src2
-rw-r--r--archival/ar.c5
-rw-r--r--archival/bbunzip.c12
-rw-r--r--archival/cpio.c2
-rw-r--r--archival/dpkg_deb.c2
-rw-r--r--archival/gzip.c2
-rw-r--r--archival/libunarchive/Kbuild.src3
-rw-r--r--archival/libunarchive/data_align.c2
-rw-r--r--archival/libunarchive/data_extract_all.c2
-rw-r--r--archival/libunarchive/data_extract_to_command.c2
-rw-r--r--archival/libunarchive/data_extract_to_stdout.c2
-rw-r--r--archival/libunarchive/data_skip.c2
-rw-r--r--archival/libunarchive/decompress_bunzip2.c2
-rw-r--r--archival/libunarchive/decompress_unlzma.c2
-rw-r--r--archival/libunarchive/decompress_unxz.c2
-rw-r--r--archival/libunarchive/decompress_unzip.c2
-rw-r--r--archival/libunarchive/filter_accept_all.c2
-rw-r--r--archival/libunarchive/filter_accept_list.c2
-rw-r--r--archival/libunarchive/filter_accept_list_reassign.c2
-rw-r--r--archival/libunarchive/filter_accept_reject_list.c2
-rw-r--r--archival/libunarchive/find_list_entry.c2
-rw-r--r--archival/libunarchive/get_header_ar.c2
-rw-r--r--archival/libunarchive/get_header_cpio.c2
-rw-r--r--archival/libunarchive/get_header_tar.c8
-rw-r--r--archival/libunarchive/get_header_tar_bz2.c2
-rw-r--r--archival/libunarchive/get_header_tar_gz.c2
-rw-r--r--archival/libunarchive/get_header_tar_lzma.c2
-rw-r--r--archival/libunarchive/header_list.c2
-rw-r--r--archival/libunarchive/header_skip.c2
-rw-r--r--archival/libunarchive/header_verbose_list.c2
-rw-r--r--archival/libunarchive/init_handle.c2
-rw-r--r--archival/libunarchive/open_transformer.c2
-rw-r--r--archival/libunarchive/seek_by_jump.c2
-rw-r--r--archival/libunarchive/seek_by_read.c2
-rw-r--r--archival/libunarchive/unpack_ar_archive.c2
-rw-r--r--archival/rpm.c2
-rw-r--r--archival/rpm.h2
-rw-r--r--archival/rpm2cpio.c2
-rw-r--r--archival/tar.c7
-rw-r--r--archival/unzip.c2
41 files changed, 54 insertions, 55 deletions
diff --git a/archival/Config.src b/archival/Config.src
index 9a84fd6c6..81788ecd9 100644
--- a/archival/Config.src
+++ b/archival/Config.src
@@ -194,7 +194,7 @@ config LZOP
194 Lzop compression/decompresion. 194 Lzop compression/decompresion.
195 195
196config LZOP_COMPR_HIGH 196config LZOP_COMPR_HIGH
197 bool "lzop complession levels 7,8,9 (not very useful)" 197 bool "lzop compression levels 7,8,9 (not very useful)"
198 default n 198 default n
199 depends on LZOP 199 depends on LZOP
200 help 200 help
@@ -206,7 +206,7 @@ config RPM2CPIO
206 bool "rpm2cpio" 206 bool "rpm2cpio"
207 default y 207 default y
208 help 208 help
209 Converts an RPM file into a CPIO archive. 209 Converts a RPM file into a CPIO archive.
210 210
211config RPM 211config RPM
212 bool "rpm" 212 bool "rpm"
diff --git a/archival/Kbuild.src b/archival/Kbuild.src
index 076e58278..a0edb123d 100644
--- a/archival/Kbuild.src
+++ b/archival/Kbuild.src
@@ -2,7 +2,7 @@
2# 2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> 3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4# 4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball. 5# Licensed under GPLv2, see file LICENSE in this source tree.
6 6
7libs-y += libunarchive/ 7libs-y += libunarchive/
8 8
diff --git a/archival/ar.c b/archival/ar.c
index 1b7b66a57..05556c6cb 100644
--- a/archival/ar.c
+++ b/archival/ar.c
@@ -6,7 +6,7 @@
6 * 6 *
7 * Based in part on BusyBox tar, Debian dpkg-deb and GNU ar. 7 * Based in part on BusyBox tar, Debian dpkg-deb and GNU ar.
8 * 8 *
9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
10 * 10 *
11 * Archive creation support: 11 * Archive creation support:
12 * Copyright (C) 2010 Nokia Corporation. All rights reserved. 12 * Copyright (C) 2010 Nokia Corporation. All rights reserved.
@@ -123,8 +123,7 @@ static int write_ar_archive(archive_handle_t *handle)
123 struct stat st; 123 struct stat st;
124 archive_handle_t *out_handle; 124 archive_handle_t *out_handle;
125 125
126 if (fstat(handle->src_fd, &st) == -1) 126 xfstat(handle->src_fd, &st, handle->ar__name);
127 bb_simple_perror_msg_and_die(handle->ar__name);
128 127
129 /* if archive exists, create a new handle for output. 128 /* if archive exists, create a new handle for output.
130 * we create it in place of the old one. 129 * we create it in place of the old one.
diff --git a/archival/bbunzip.c b/archival/bbunzip.c
index c1259ac46..787f4124d 100644
--- a/archival/bbunzip.c
+++ b/archival/bbunzip.c
@@ -1,8 +1,8 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Common code for gunzip-like applets 3 * Common code for gunzip-like applets
4 * 4 *
5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
6 */ 6 */
7#include "libbb.h" 7#include "libbb.h"
8#include "unarchive.h" 8#include "unarchive.h"
@@ -165,7 +165,7 @@ char* FAST_FUNC make_new_name_generic(char *filename, const char *expected_ext)
165/* 165/*
166 * Uncompress applet for busybox (c) 2002 Glenn McGrath 166 * Uncompress applet for busybox (c) 2002 Glenn McGrath
167 * 167 *
168 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 168 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
169 */ 169 */
170#if ENABLE_UNCOMPRESS 170#if ENABLE_UNCOMPRESS
171static 171static
@@ -206,7 +206,7 @@ int uncompress_main(int argc UNUSED_PARAM, char **argv)
206 * General cleanup to better adhere to the style guide and make use of standard 206 * General cleanup to better adhere to the style guide and make use of standard
207 * busybox functions by Glenn McGrath 207 * busybox functions by Glenn McGrath
208 * 208 *
209 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 209 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
210 * 210 *
211 * gzip (GNU zip) -- compress files with zip algorithm and 'compress' interface 211 * gzip (GNU zip) -- compress files with zip algorithm and 'compress' interface
212 * Copyright (C) 1992-1993 Jean-loup Gailly 212 * Copyright (C) 1992-1993 Jean-loup Gailly
@@ -302,7 +302,7 @@ int gunzip_main(int argc UNUSED_PARAM, char **argv)
302 * Modified for busybox by Glenn McGrath 302 * Modified for busybox by Glenn McGrath
303 * Added support output to stdout by Thomas Lundquist <thomasez@zelow.no> 303 * Added support output to stdout by Thomas Lundquist <thomasez@zelow.no>
304 * 304 *
305 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 305 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
306 */ 306 */
307//usage:#define bunzip2_trivial_usage 307//usage:#define bunzip2_trivial_usage
308//usage: "[OPTIONS] [FILE]..." 308//usage: "[OPTIONS] [FILE]..."
@@ -342,7 +342,7 @@ int bunzip2_main(int argc UNUSED_PARAM, char **argv)
342 * 342 *
343 * Based on bunzip.c from busybox 343 * Based on bunzip.c from busybox
344 * 344 *
345 * Licensed under GPL v2, see file LICENSE in this tarball for details. 345 * Licensed under GPLv2, see file LICENSE in this source tree.
346 */ 346 */
347#if ENABLE_UNLZMA 347#if ENABLE_UNLZMA
348static 348static
diff --git a/archival/cpio.c b/archival/cpio.c
index e0ca7fa5c..7cd8ee8a7 100644
--- a/archival/cpio.c
+++ b/archival/cpio.c
@@ -4,7 +4,7 @@
4 * 4 *
5 * Copyright (C) 2001 by Glenn McGrath 5 * Copyright (C) 2001 by Glenn McGrath
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 * 8 *
9 * Limitations: 9 * Limitations:
10 * Doesn't check CRC's 10 * Doesn't check CRC's
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c
index 45a791bba..4c627e890 100644
--- a/archival/dpkg_deb.c
+++ b/archival/dpkg_deb.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * dpkg-deb packs, unpacks and provides information about Debian archives. 3 * dpkg-deb packs, unpacks and provides information about Debian archives.
4 * 4 *
5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
6 */ 6 */
7#include "libbb.h" 7#include "libbb.h"
8#include "unarchive.h" 8#include "unarchive.h"
diff --git a/archival/gzip.c b/archival/gzip.c
index f80754f8b..e9f09730d 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -13,7 +13,7 @@
13 * files as well as stdin/stdout, and to generally behave itself wrt 13 * files as well as stdin/stdout, and to generally behave itself wrt
14 * command line handling. 14 * command line handling.
15 * 15 *
16 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 16 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
17 */ 17 */
18 18
19/* big objects in bss: 19/* big objects in bss:
diff --git a/archival/libunarchive/Kbuild.src b/archival/libunarchive/Kbuild.src
index a8549570e..e92b4aad2 100644
--- a/archival/libunarchive/Kbuild.src
+++ b/archival/libunarchive/Kbuild.src
@@ -2,7 +2,7 @@
2# 2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4# 4#
5# Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 5# Licensed under GPLv2 or later, see file LICENSE in this source tree.
6 6
7lib-y:= 7lib-y:=
8 8
@@ -54,6 +54,7 @@ lib-$(CONFIG_FEATURE_SEAMLESS_BZ2) += open_transformer.o decompress_bunzip2
54lib-$(CONFIG_FEATURE_SEAMLESS_LZMA) += open_transformer.o decompress_unlzma.o get_header_tar_lzma.o 54lib-$(CONFIG_FEATURE_SEAMLESS_LZMA) += open_transformer.o decompress_unlzma.o get_header_tar_lzma.o
55lib-$(CONFIG_FEATURE_SEAMLESS_XZ) += open_transformer.o decompress_unxz.o 55lib-$(CONFIG_FEATURE_SEAMLESS_XZ) += open_transformer.o decompress_unxz.o
56lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += decompress_bunzip2.o 56lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += decompress_bunzip2.o
57lib-$(CONFIG_FEATURE_COMPRESS_BBCONFIG) += decompress_bunzip2.o
57lib-$(CONFIG_FEATURE_TAR_TO_COMMAND) += data_extract_to_command.o 58lib-$(CONFIG_FEATURE_TAR_TO_COMMAND) += data_extract_to_command.o
58 59
59ifneq ($(lib-y),) 60ifneq ($(lib-y),)
diff --git a/archival/libunarchive/data_align.c b/archival/libunarchive/data_align.c
index 0c8542bf5..4e21a36b3 100644
--- a/archival/libunarchive/data_align.c
+++ b/archival/libunarchive/data_align.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6#include "libbb.h" 6#include "libbb.h"
diff --git a/archival/libunarchive/data_extract_all.c b/archival/libunarchive/data_extract_all.c
index 00e67d405..cc549cd78 100644
--- a/archival/libunarchive/data_extract_all.c
+++ b/archival/libunarchive/data_extract_all.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6#include "libbb.h" 6#include "libbb.h"
diff --git a/archival/libunarchive/data_extract_to_command.c b/archival/libunarchive/data_extract_to_command.c
index 95f5bc864..b54f7f215 100644
--- a/archival/libunarchive/data_extract_to_command.c
+++ b/archival/libunarchive/data_extract_to_command.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6#include "libbb.h" 6#include "libbb.h"
diff --git a/archival/libunarchive/data_extract_to_stdout.c b/archival/libunarchive/data_extract_to_stdout.c
index a3efea16d..ce0713ac4 100644
--- a/archival/libunarchive/data_extract_to_stdout.c
+++ b/archival/libunarchive/data_extract_to_stdout.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6#include "libbb.h" 6#include "libbb.h"
diff --git a/archival/libunarchive/data_skip.c b/archival/libunarchive/data_skip.c
index 06d3dced4..06b74399d 100644
--- a/archival/libunarchive/data_skip.c
+++ b/archival/libunarchive/data_skip.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6#include "libbb.h" 6#include "libbb.h"
diff --git a/archival/libunarchive/decompress_bunzip2.c b/archival/libunarchive/decompress_bunzip2.c
index bdbd39ac2..22015683c 100644
--- a/archival/libunarchive/decompress_bunzip2.c
+++ b/archival/libunarchive/decompress_bunzip2.c
@@ -6,7 +6,7 @@
6 Peter Fenwick, Alistair Moffat, Radford Neal, Ian H. Witten, 6 Peter Fenwick, Alistair Moffat, Radford Neal, Ian H. Witten,
7 Robert Sedgewick, and Jon L. Bentley. 7 Robert Sedgewick, and Jon L. Bentley.
8 8
9 Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 Licensed under GPLv2 or later, see file LICENSE in this source tree.
10*/ 10*/
11 11
12/* 12/*
diff --git a/archival/libunarchive/decompress_unlzma.c b/archival/libunarchive/decompress_unlzma.c
index ecda17481..1a3a8f86b 100644
--- a/archival/libunarchive/decompress_unlzma.c
+++ b/archival/libunarchive/decompress_unlzma.c
@@ -6,7 +6,7 @@
6 * Based on LzmaDecode.c from the LZMA SDK 4.22 (http://www.7-zip.org/) 6 * Based on LzmaDecode.c from the LZMA SDK 4.22 (http://www.7-zip.org/)
7 * Copyright (C) 1999-2005 Igor Pavlov 7 * Copyright (C) 1999-2005 Igor Pavlov
8 * 8 *
9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
10 */ 10 */
11#include "libbb.h" 11#include "libbb.h"
12#include "unarchive.h" 12#include "unarchive.h"
diff --git a/archival/libunarchive/decompress_unxz.c b/archival/libunarchive/decompress_unxz.c
index 721acd907..faba9ca82 100644
--- a/archival/libunarchive/decompress_unxz.c
+++ b/archival/libunarchive/decompress_unxz.c
@@ -7,7 +7,7 @@
7 * 7 *
8 * This file is: 8 * This file is:
9 * Copyright (C) 2010 Denys Vlasenko <vda.linux@googlemail.com> 9 * Copyright (C) 2010 Denys Vlasenko <vda.linux@googlemail.com>
10 * Licensed under GPLv2, see file LICENSE in this tarball for details. 10 * Licensed under GPLv2, see file LICENSE in this source tree.
11 */ 11 */
12#include "libbb.h" 12#include "libbb.h"
13#include "unarchive.h" 13#include "unarchive.h"
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c
index bccd0262e..20fda9d26 100644
--- a/archival/libunarchive/decompress_unzip.c
+++ b/archival/libunarchive/decompress_unzip.c
@@ -30,7 +30,7 @@
30 * 30 *
31 * See the file algorithm.doc for the compression algorithms and file formats. 31 * See the file algorithm.doc for the compression algorithms and file formats.
32 * 32 *
33 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 33 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
34 */ 34 */
35 35
36#include <setjmp.h> 36#include <setjmp.h>
diff --git a/archival/libunarchive/filter_accept_all.c b/archival/libunarchive/filter_accept_all.c
index 21f9c5c9e..cb1f506c8 100644
--- a/archival/libunarchive/filter_accept_all.c
+++ b/archival/libunarchive/filter_accept_all.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Copyright (C) 2002 by Glenn McGrath 3 * Copyright (C) 2002 by Glenn McGrath
4 * 4 *
5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
6 */ 6 */
7 7
8#include "libbb.h" 8#include "libbb.h"
diff --git a/archival/libunarchive/filter_accept_list.c b/archival/libunarchive/filter_accept_list.c
index afa0b4cbf..fe4414c85 100644
--- a/archival/libunarchive/filter_accept_list.c
+++ b/archival/libunarchive/filter_accept_list.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Copyright (C) 2002 by Glenn McGrath 3 * Copyright (C) 2002 by Glenn McGrath
4 * 4 *
5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
6 */ 6 */
7 7
8#include "libbb.h" 8#include "libbb.h"
diff --git a/archival/libunarchive/filter_accept_list_reassign.c b/archival/libunarchive/filter_accept_list_reassign.c
index 060a2c72b..891f58390 100644
--- a/archival/libunarchive/filter_accept_list_reassign.c
+++ b/archival/libunarchive/filter_accept_list_reassign.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Copyright (C) 2002 by Glenn McGrath 3 * Copyright (C) 2002 by Glenn McGrath
4 * 4 *
5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
6 */ 6 */
7 7
8#include "libbb.h" 8#include "libbb.h"
diff --git a/archival/libunarchive/filter_accept_reject_list.c b/archival/libunarchive/filter_accept_reject_list.c
index aa601e137..89a5502d5 100644
--- a/archival/libunarchive/filter_accept_reject_list.c
+++ b/archival/libunarchive/filter_accept_reject_list.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Copyright (C) 2002 by Glenn McGrath 3 * Copyright (C) 2002 by Glenn McGrath
4 * 4 *
5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
6 */ 6 */
7 7
8#include "libbb.h" 8#include "libbb.h"
diff --git a/archival/libunarchive/find_list_entry.c b/archival/libunarchive/find_list_entry.c
index bc7bc6471..5c0c85f09 100644
--- a/archival/libunarchive/find_list_entry.c
+++ b/archival/libunarchive/find_list_entry.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Copyright (C) 2002 by Glenn McGrath 3 * Copyright (C) 2002 by Glenn McGrath
4 * 4 *
5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
6 */ 6 */
7 7
8#include <fnmatch.h> 8#include <fnmatch.h>
diff --git a/archival/libunarchive/get_header_ar.c b/archival/libunarchive/get_header_ar.c
index dbc5ec004..6bfc6bc27 100644
--- a/archival/libunarchive/get_header_ar.c
+++ b/archival/libunarchive/get_header_ar.c
@@ -1,7 +1,7 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* Copyright 2001 Glenn McGrath. 2/* Copyright 2001 Glenn McGrath.
3 * 3 *
4 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
5 */ 5 */
6 6
7#include "libbb.h" 7#include "libbb.h"
diff --git a/archival/libunarchive/get_header_cpio.c b/archival/libunarchive/get_header_cpio.c
index 4507d538b..8cd1096ba 100644
--- a/archival/libunarchive/get_header_cpio.c
+++ b/archival/libunarchive/get_header_cpio.c
@@ -1,7 +1,7 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* Copyright 2002 Laurence Anderson 2/* Copyright 2002 Laurence Anderson
3 * 3 *
4 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
5 */ 5 */
6 6
7#include "libbb.h" 7#include "libbb.h"
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c
index d5c92359c..cf6487207 100644
--- a/archival/libunarchive/get_header_tar.c
+++ b/archival/libunarchive/get_header_tar.c
@@ -1,14 +1,14 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 2/* Licensed under GPLv2 or later, see file LICENSE in this source tree.
3 * 3 *
4 * FIXME: 4 * FIXME:
5 * In privileged mode if uname and gname map to a uid and gid then use the 5 * In privileged mode if uname and gname map to a uid and gid then use the
6 * mapped value instead of the uid/gid values in tar header 6 * mapped value instead of the uid/gid values in tar header
7 * 7 *
8 * References: 8 * References:
9 * GNU tar and star man pages, 9 * GNU tar and star man pages,
10 * Opengroup's ustar interchange format, 10 * Opengroup's ustar interchange format,
11 * http://www.opengroup.org/onlinepubs/007904975/utilities/pax.html 11 * http://www.opengroup.org/onlinepubs/007904975/utilities/pax.html
12 */ 12 */
13 13
14#include "libbb.h" 14#include "libbb.h"
diff --git a/archival/libunarchive/get_header_tar_bz2.c b/archival/libunarchive/get_header_tar_bz2.c
index 615bbba4a..4ffc17086 100644
--- a/archival/libunarchive/get_header_tar_bz2.c
+++ b/archival/libunarchive/get_header_tar_bz2.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6#include "libbb.h" 6#include "libbb.h"
diff --git a/archival/libunarchive/get_header_tar_gz.c b/archival/libunarchive/get_header_tar_gz.c
index e88b720a8..a9af22e0e 100644
--- a/archival/libunarchive/get_header_tar_gz.c
+++ b/archival/libunarchive/get_header_tar_gz.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6#include "libbb.h" 6#include "libbb.h"
diff --git a/archival/libunarchive/get_header_tar_lzma.c b/archival/libunarchive/get_header_tar_lzma.c
index 03b1b792d..9876b3827 100644
--- a/archival/libunarchive/get_header_tar_lzma.c
+++ b/archival/libunarchive/get_header_tar_lzma.c
@@ -3,7 +3,7 @@
3 * Small lzma deflate implementation. 3 * Small lzma deflate implementation.
4 * Copyright (C) 2006 Aurelien Jacobs <aurel@gnuage.org> 4 * Copyright (C) 2006 Aurelien Jacobs <aurel@gnuage.org>
5 * 5 *
6 * Licensed under GPL v2, see file LICENSE in this tarball for details. 6 * Licensed under GPLv2, see file LICENSE in this source tree.
7 */ 7 */
8 8
9#include "libbb.h" 9#include "libbb.h"
diff --git a/archival/libunarchive/header_list.c b/archival/libunarchive/header_list.c
index b1c425aca..902d6ebe0 100644
--- a/archival/libunarchive/header_list.c
+++ b/archival/libunarchive/header_list.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5#include "libbb.h" 5#include "libbb.h"
6#include "unarchive.h" 6#include "unarchive.h"
diff --git a/archival/libunarchive/header_skip.c b/archival/libunarchive/header_skip.c
index a97a9ce80..2af36ac9c 100644
--- a/archival/libunarchive/header_skip.c
+++ b/archival/libunarchive/header_skip.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5#include "libbb.h" 5#include "libbb.h"
6#include "unarchive.h" 6#include "unarchive.h"
diff --git a/archival/libunarchive/header_verbose_list.c b/archival/libunarchive/header_verbose_list.c
index 3319e63a9..d863e6a29 100644
--- a/archival/libunarchive/header_verbose_list.c
+++ b/archival/libunarchive/header_verbose_list.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6#include "libbb.h" 6#include "libbb.h"
diff --git a/archival/libunarchive/init_handle.c b/archival/libunarchive/init_handle.c
index ff7d484e5..de7021f78 100644
--- a/archival/libunarchive/init_handle.c
+++ b/archival/libunarchive/init_handle.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6#include "libbb.h" 6#include "libbb.h"
diff --git a/archival/libunarchive/open_transformer.c b/archival/libunarchive/open_transformer.c
index cba049f1f..ed6a556bb 100644
--- a/archival/libunarchive/open_transformer.c
+++ b/archival/libunarchive/open_transformer.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6#include "libbb.h" 6#include "libbb.h"
diff --git a/archival/libunarchive/seek_by_jump.c b/archival/libunarchive/seek_by_jump.c
index 7181cb3ce..bda55e1b1 100644
--- a/archival/libunarchive/seek_by_jump.c
+++ b/archival/libunarchive/seek_by_jump.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6#include "libbb.h" 6#include "libbb.h"
diff --git a/archival/libunarchive/seek_by_read.c b/archival/libunarchive/seek_by_read.c
index af65e5d85..25b31365d 100644
--- a/archival/libunarchive/seek_by_read.c
+++ b/archival/libunarchive/seek_by_read.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6#include "libbb.h" 6#include "libbb.h"
diff --git a/archival/libunarchive/unpack_ar_archive.c b/archival/libunarchive/unpack_ar_archive.c
index 300d10e48..4f68ba3d8 100644
--- a/archival/libunarchive/unpack_ar_archive.c
+++ b/archival/libunarchive/unpack_ar_archive.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6#include "libbb.h" 6#include "libbb.h"
diff --git a/archival/rpm.c b/archival/rpm.c
index 38ec20ef5..7b316a5b8 100644
--- a/archival/rpm.c
+++ b/archival/rpm.c
@@ -4,7 +4,7 @@
4 * 4 *
5 * Copyright (C) 2001,2002 by Laurence Anderson 5 * Copyright (C) 2001,2002 by Laurence Anderson
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 */ 8 */
9 9
10#include "libbb.h" 10#include "libbb.h"
diff --git a/archival/rpm.h b/archival/rpm.h
index f7c6fc2fa..afe2b550c 100644
--- a/archival/rpm.h
+++ b/archival/rpm.h
@@ -4,7 +4,7 @@
4 * 4 *
5 * Copyright (C) 2001 by Laurence Anderson 5 * Copyright (C) 2001 by Laurence Anderson
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 */ 8 */
9 9
10/* RPM file starts with this struct: */ 10/* RPM file starts with this struct: */
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c
index 5bc50b88f..70021d539 100644
--- a/archival/rpm2cpio.c
+++ b/archival/rpm2cpio.c
@@ -4,7 +4,7 @@
4 * 4 *
5 * Copyright (C) 2001 by Laurence Anderson 5 * Copyright (C) 2001 by Laurence Anderson
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 */ 8 */
9#include "libbb.h" 9#include "libbb.h"
10#include "unarchive.h" 10#include "unarchive.h"
diff --git a/archival/tar.c b/archival/tar.c
index 5ddff7fa5..2176ad2ac 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -15,12 +15,12 @@
15 * Copyright (c) 1999 by David I. Bell 15 * Copyright (c) 1999 by David I. Bell
16 * Permission is granted to use, distribute, or modify this source, 16 * Permission is granted to use, distribute, or modify this source,
17 * provided that this copyright notice remains intact. 17 * provided that this copyright notice remains intact.
18 * Permission to distribute sash derived code under the GPL has been granted. 18 * Permission to distribute sash derived code under GPL has been granted.
19 * 19 *
20 * Based in part on the tar implementation from busybox-0.28 20 * Based in part on the tar implementation from busybox-0.28
21 * Copyright (C) 1995 Bruce Perens 21 * Copyright (C) 1995 Bruce Perens
22 * 22 *
23 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 23 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
24 */ 24 */
25 25
26#include <fnmatch.h> 26#include <fnmatch.h>
@@ -572,8 +572,7 @@ static NOINLINE int writeTarFile(int tar_fd, int verboseFlag,
572 572
573 /* Store the stat info for the tarball's file, so 573 /* Store the stat info for the tarball's file, so
574 * can avoid including the tarball into itself.... */ 574 * can avoid including the tarball into itself.... */
575 if (fstat(tbInfo.tarFd, &tbInfo.tarFileStatBuf) < 0) 575 xfstat(tbInfo.tarFd, &tbInfo.tarFileStatBuf, "can't stat tar file");
576 bb_perror_msg_and_die("can't stat tar file");
577 576
578#if ENABLE_FEATURE_SEAMLESS_GZ || ENABLE_FEATURE_SEAMLESS_BZ2 577#if ENABLE_FEATURE_SEAMLESS_GZ || ENABLE_FEATURE_SEAMLESS_BZ2
579 if (gzip) 578 if (gzip)
diff --git a/archival/unzip.c b/archival/unzip.c
index d9705a56e..204e34952 100644
--- a/archival/unzip.c
+++ b/archival/unzip.c
@@ -7,7 +7,7 @@
7 * Loosely based on original busybox unzip applet by Laurence Anderson. 7 * Loosely based on original busybox unzip applet by Laurence Anderson.
8 * All options and features should work in this version. 8 * All options and features should work in this version.
9 * 9 *
10 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 10 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
11 */ 11 */
12 12
13/* For reference see 13/* For reference see