aboutsummaryrefslogtreecommitdiff
path: root/archival/tar.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-12-16 22:46:01 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-12-16 22:46:01 +0100
commit425ad9c93b2736a0ebfbba6267bc1ad56c49d156 (patch)
treea927ce59974a130f40ac93537b5dacaed668e77b /archival/tar.c
parentdbc6a7a8fd33c79037c7f2894c24f271b714e3bc (diff)
downloadbusybox-w32-425ad9c93b2736a0ebfbba6267bc1ad56c49d156.tar.gz
busybox-w32-425ad9c93b2736a0ebfbba6267bc1ad56c49d156.tar.bz2
busybox-w32-425ad9c93b2736a0ebfbba6267bc1ad56c49d156.zip
libunarchive: move dpkg-specific things into dpkg.c. 0 byte size differences
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/tar.c')
-rw-r--r--archival/tar.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/archival/tar.c b/archival/tar.c
index d6c44a7b7..7ec101d31 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -729,7 +729,7 @@ static void handle_SIGCHLD(int status)
729 /* wait failed?! I'm confused... */ 729 /* wait failed?! I'm confused... */
730 return; 730 return;
731 731
732 if (WIFEXITED(status) && WEXITSTATUS(status)==0) 732 if (WIFEXITED(status) && WEXITSTATUS(status) == 0)
733 /* child exited with 0 */ 733 /* child exited with 0 */
734 return; 734 return;
735 /* Cannot happen? 735 /* Cannot happen?
@@ -748,15 +748,16 @@ enum {
748 IF_FEATURE_TAR_FROM( OPTBIT_EXCLUDE_FROM,) 748 IF_FEATURE_TAR_FROM( OPTBIT_EXCLUDE_FROM,)
749 IF_FEATURE_SEAMLESS_GZ( OPTBIT_GZIP ,) 749 IF_FEATURE_SEAMLESS_GZ( OPTBIT_GZIP ,)
750 IF_FEATURE_SEAMLESS_Z( OPTBIT_COMPRESS ,) // 16th bit 750 IF_FEATURE_SEAMLESS_Z( OPTBIT_COMPRESS ,) // 16th bit
751#if ENABLE_FEATURE_TAR_LONG_OPTIONS
751 OPTBIT_NUMERIC_OWNER, 752 OPTBIT_NUMERIC_OWNER,
752 OPTBIT_NOPRESERVE_OWNER,
753 OPTBIT_NOPRESERVE_PERM, 753 OPTBIT_NOPRESERVE_PERM,
754#endif
754 OPT_TEST = 1 << 0, // t 755 OPT_TEST = 1 << 0, // t
755 OPT_EXTRACT = 1 << 1, // x 756 OPT_EXTRACT = 1 << 1, // x
756 OPT_BASEDIR = 1 << 2, // C 757 OPT_BASEDIR = 1 << 2, // C
757 OPT_TARNAME = 1 << 3, // f 758 OPT_TARNAME = 1 << 3, // f
758 OPT_2STDOUT = 1 << 4, // O 759 OPT_2STDOUT = 1 << 4, // O
759 OPT_NOPRESERVE_OWNER = 1 << 5, // no-same-owner 760 OPT_NOPRESERVE_OWNER = 1 << 5, // o == no-same-owner
760 OPT_P = 1 << 6, // p 761 OPT_P = 1 << 6, // p
761 OPT_VERBOSE = 1 << 7, // v 762 OPT_VERBOSE = 1 << 7, // v
762 OPT_KEEP_OLD = 1 << 8, // k 763 OPT_KEEP_OLD = 1 << 8, // k
@@ -768,8 +769,8 @@ enum {
768 OPT_EXCLUDE_FROM = IF_FEATURE_TAR_FROM( (1 << OPTBIT_EXCLUDE_FROM)) + 0, // X 769 OPT_EXCLUDE_FROM = IF_FEATURE_TAR_FROM( (1 << OPTBIT_EXCLUDE_FROM)) + 0, // X
769 OPT_GZIP = IF_FEATURE_SEAMLESS_GZ( (1 << OPTBIT_GZIP )) + 0, // z 770 OPT_GZIP = IF_FEATURE_SEAMLESS_GZ( (1 << OPTBIT_GZIP )) + 0, // z
770 OPT_COMPRESS = IF_FEATURE_SEAMLESS_Z( (1 << OPTBIT_COMPRESS )) + 0, // Z 771 OPT_COMPRESS = IF_FEATURE_SEAMLESS_Z( (1 << OPTBIT_COMPRESS )) + 0, // Z
771 OPT_NUMERIC_OWNER = 1 << OPTBIT_NUMERIC_OWNER, 772 OPT_NUMERIC_OWNER = IF_FEATURE_TAR_LONG_OPTIONS((1 << OPTBIT_NUMERIC_OWNER )) + 0, // numeric-owner
772 OPT_NOPRESERVE_PERM = 1 << OPTBIT_NOPRESERVE_PERM, // no-same-permissions 773 OPT_NOPRESERVE_PERM = IF_FEATURE_TAR_LONG_OPTIONS((1 << OPTBIT_NOPRESERVE_PERM)) + 0, // no-same-permissions
773}; 774};
774#if ENABLE_FEATURE_TAR_LONG_OPTIONS 775#if ENABLE_FEATURE_TAR_LONG_OPTIONS
775static const char tar_longopts[] ALIGN1 = 776static const char tar_longopts[] ALIGN1 =
@@ -810,8 +811,7 @@ static const char tar_longopts[] ALIGN1 =
810 /* do not restore mode */ 811 /* do not restore mode */
811 "no-same-permissions\0" No_argument "\xfe" 812 "no-same-permissions\0" No_argument "\xfe"
812 /* --exclude takes next bit position in option mask, */ 813 /* --exclude takes next bit position in option mask, */
813 /* therefore we have to either put it _after_ --no-same-perm */ 814 /* therefore we have to put it _after_ --no-same-permissions */
814 /* or add OPT[BIT]_EXCLUDE before OPT[BIT]_NOPRESERVE_OWNER */
815# if ENABLE_FEATURE_TAR_FROM 815# if ENABLE_FEATURE_TAR_FROM
816 "exclude\0" Required_argument "\xff" 816 "exclude\0" Required_argument "\xff"
817# endif 817# endif