aboutsummaryrefslogtreecommitdiff
path: root/libbb/appletlib.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-23 12:12:03 +0000
committerRon Yorston <rmy@pobox.com>2012-03-23 12:12:03 +0000
commitb0f54743e36af163ae2530c381c485bb29df13dc (patch)
treecda4cfeaae6e47fe4f14c1b566092be4da9affc4 /libbb/appletlib.c
parent40514a0309939f2446f0d4ed9600cad5de396e7f (diff)
parentba88826c66411affc1da3614742b454654f7298a (diff)
downloadbusybox-w32-b0f54743e36af163ae2530c381c485bb29df13dc.tar.gz
busybox-w32-b0f54743e36af163ae2530c381c485bb29df13dc.tar.bz2
busybox-w32-b0f54743e36af163ae2530c381c485bb29df13dc.zip
Merge branch 'busybox' into merge
Conflicts: Makefile.flags
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r--libbb/appletlib.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index 0c675db4d..116e275be 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -632,7 +632,10 @@ static int busybox_main(char **argv)
632 "See source distribution for full notice.\n" 632 "See source distribution for full notice.\n"
633 "\n" 633 "\n"
634 "Usage: busybox [function] [arguments]...\n" 634 "Usage: busybox [function] [arguments]...\n"
635 " or: busybox --list[-full]\n" 635 " or: busybox --list"IF_FEATURE_INSTALLER("[-full]")"\n"
636 IF_FEATURE_INSTALLER(
637 " or: busybox --install [-s] [DIR]\n"
638 )
636 " or: function [arguments]...\n" 639 " or: function [arguments]...\n"
637 "\n" 640 "\n"
638 "\tBusyBox is a multi-call binary that combines many common Unix\n" 641 "\tBusyBox is a multi-call binary that combines many common Unix\n"
@@ -672,7 +675,7 @@ static int busybox_main(char **argv)
672 dup2(1, 2); 675 dup2(1, 2);
673 while (*a) { 676 while (*a) {
674# if ENABLE_FEATURE_INSTALLER 677# if ENABLE_FEATURE_INSTALLER
675 if (argv[1][6]) /* --list-path? */ 678 if (argv[1][6]) /* --list-full? */
676 full_write2_str(install_dir[APPLET_INSTALL_LOC(i)] + 1); 679 full_write2_str(install_dir[APPLET_INSTALL_LOC(i)] + 1);
677# endif 680# endif
678 full_write2_str(a); 681 full_write2_str(a);
@@ -702,7 +705,7 @@ static int busybox_main(char **argv)
702 * -s: make symlinks 705 * -s: make symlinks
703 * DIR: directory to install links to 706 * DIR: directory to install links to
704 */ 707 */
705 use_symbolic_links = (argv[2] && strcmp(argv[2], "-s") == 0 && argv++); 708 use_symbolic_links = (argv[2] && strcmp(argv[2], "-s") == 0 && ++argv);
706 install_links(busybox, use_symbolic_links, argv[2]); 709 install_links(busybox, use_symbolic_links, argv[2]);
707 return 0; 710 return 0;
708 } 711 }