aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-29 11:09:43 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-29 11:09:43 +0000
commit28c6254d02ad9e9b1c70cf8b0bbe8fc47eefafbe (patch)
tree6af2895da70dda926317fac31cd4db6a4b20200c /archival
parent182a8119063f6a02109783c28513dc7674ba5be7 (diff)
downloadbusybox-w32-28c6254d02ad9e9b1c70cf8b0bbe8fc47eefafbe.tar.gz
busybox-w32-28c6254d02ad9e9b1c70cf8b0bbe8fc47eefafbe.tar.bz2
busybox-w32-28c6254d02ad9e9b1c70cf8b0bbe8fc47eefafbe.zip
fix support for globally disabling --long-options.
(disabling them saves ~4K on fully configured bbox) git-svn-id: svn://busybox.net/trunk/busybox@16715 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival')
-rw-r--r--archival/tar.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/archival/tar.c b/archival/tar.c
index ca6c1696e..6a4c4e7e8 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -721,8 +721,6 @@ static const struct option tar_long_options[] = {
721# endif 721# endif
722 { 0, 0, 0, 0 } 722 { 0, 0, 0, 0 }
723}; 723};
724#else
725#define tar_long_options 0
726#endif 724#endif
727 725
728int tar_main(int argc, char **argv) 726int tar_main(int argc, char **argv)
@@ -750,8 +748,9 @@ int tar_main(int argc, char **argv)
750 USE_FEATURE_TAR_CREATE("c:") "t:x:" // at least one of these is reqd 748 USE_FEATURE_TAR_CREATE("c:") "t:x:" // at least one of these is reqd
751 USE_FEATURE_TAR_CREATE("c--tx:t--cx:x--ct") // mutually exclusive 749 USE_FEATURE_TAR_CREATE("c--tx:t--cx:x--ct") // mutually exclusive
752 SKIP_FEATURE_TAR_CREATE("t--x:x--t"); // mutually exclusive 750 SKIP_FEATURE_TAR_CREATE("t--x:x--t"); // mutually exclusive
753 if (ENABLE_FEATURE_TAR_LONG_OPTIONS) 751#if ENABLE_FEATURE_TAR_LONG_OPTIONS
754 applet_long_options = tar_long_options; 752 applet_long_options = tar_long_options;
753#endif
755 opt = getopt32(argc, argv, 754 opt = getopt32(argc, argv,
756 "txC:f:Opvk" 755 "txC:f:Opvk"
757 USE_FEATURE_TAR_CREATE( "ch" ) 756 USE_FEATURE_TAR_CREATE( "ch" )