diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-08-02 20:56:16 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-08-02 20:56:16 +0000 |
commit | 0b7d70c822ae473b42a9db95cdc026286d992a48 (patch) | |
tree | 64e0bd523ef185d3b4ebb1734f7773fa3058606c | |
parent | 8aa0b62a885e1a0f125e4cd47d993fa7025daf36 (diff) | |
download | busybox-w32-0b7d70c822ae473b42a9db95cdc026286d992a48.tar.gz busybox-w32-0b7d70c822ae473b42a9db95cdc026286d992a48.tar.bz2 busybox-w32-0b7d70c822ae473b42a9db95cdc026286d992a48.zip |
Fix up some silly messups with the debian packaging, and a dumb0_60_0
bug with chroot. I've had the package uploaded but perms set to
000, so I am going to re-tag things and re-cut the release. Folks
who pulled from CVS in the last 30 minutes with just have to cope.
-Erik
-rw-r--r-- | Makefile | 16 | ||||
-rw-r--r-- | chroot.c | 12 | ||||
-rw-r--r-- | coreutils/chroot.c | 12 | ||||
-rw-r--r-- | debian/Config.h-deb | 6 | ||||
-rw-r--r-- | debian/Config.h-static | 17 | ||||
-rw-r--r-- | debian/Config.h-udeb | 8 |
6 files changed, 41 insertions, 30 deletions
@@ -227,7 +227,10 @@ ifneq ($(strip $(USE_SYSTEM_PWD_GRP)),true) | |||
227 | fgetpwent.c __getgrent.c grent.c getgrnam.c getgrgid.c fgetgrent.c \ | 227 | fgetpwent.c __getgrent.c grent.c getgrnam.c getgrgid.c fgetgrent.c \ |
228 | initgroups.c setgroups.c | 228 | initgroups.c setgroups.c |
229 | PWD_OBJS=$(patsubst %.c,$(PWD_GRP)/%.o, $(PWD_CSRC)) | 229 | PWD_OBJS=$(patsubst %.c,$(PWD_GRP)/%.o, $(PWD_CSRC)) |
230 | PWD_CFLAGS = -I$(PWD_GRP_DIR) | 230 | ifneq ($(strip $(BB_SRC_DIR)),) |
231 | PWD_CFLAGS = -I- -I. | ||
232 | endif | ||
233 | PWD_CFLAGS += -I$(PWD_GRP_DIR) | ||
231 | else | 234 | else |
232 | CFLAGS += -DUSE_SYSTEM_PWD_GRP | 235 | CFLAGS += -DUSE_SYSTEM_PWD_GRP |
233 | endif | 236 | endif |
@@ -249,9 +252,10 @@ xgetcwd.c xreadlink.c xregcomp.c interface.c remove_file.c last_char_is.c \ | |||
249 | copyfd.c vherror_msg.c herror_msg.c herror_msg_and_die.c xgethostbyname.c \ | 252 | copyfd.c vherror_msg.c herror_msg.c herror_msg_and_die.c xgethostbyname.c \ |
250 | dirname.c make_directory.c create_icmp_socket.c u_signal_names.c arith.c | 253 | dirname.c make_directory.c create_icmp_socket.c u_signal_names.c arith.c |
251 | LIBBB_OBJS=$(patsubst %.c,$(LIBBB)/%.o, $(LIBBB_CSRC)) | 254 | LIBBB_OBJS=$(patsubst %.c,$(LIBBB)/%.o, $(LIBBB_CSRC)) |
252 | LIBBB_CFLAGS = -I$(LIBBB) | 255 | ifeq ($(strip $(BB_SRC_DIR)),) |
253 | ifneq ($(strip $(BB_SRC_DIR)),) | 256 | LIBBB_CFLAGS += -I$(LIBBB) |
254 | LIBBB_CFLAGS += -I$(BB_SRC_DIR)/$(LIBBB) | 257 | else |
258 | LIBBB_CFLAGS = -I- -I. -I./$(LIBBB) -I$(BB_SRC_DIR)/$(LIBBB) -I$(BB_SRC_DIR) | ||
255 | endif | 259 | endif |
256 | 260 | ||
257 | LIBBB_MSRC=libbb/messages.c | 261 | LIBBB_MSRC=libbb/messages.c |
@@ -351,7 +355,11 @@ busybox.links: busybox.mkll Config.h applets.h | |||
351 | nfsmount.o cmdedit.o: %.o: %.h | 355 | nfsmount.o cmdedit.o: %.o: %.h |
352 | ash.o hush.o lash.o msh.o: cmdedit.h | 356 | ash.o hush.o lash.o msh.o: cmdedit.h |
353 | $(OBJECTS): %.o: %.c Config.h busybox.h applets.h Makefile | 357 | $(OBJECTS): %.o: %.c Config.h busybox.h applets.h Makefile |
358 | ifeq ($(strip $(BB_SRC_DIR)),) | ||
354 | $(CC) $(CFLAGS) -I. $(patsubst %,-I%,$(subst :, ,$(BB_SRC_DIR))) -c $< -o $*.o | 359 | $(CC) $(CFLAGS) -I. $(patsubst %,-I%,$(subst :, ,$(BB_SRC_DIR))) -c $< -o $*.o |
360 | else | ||
361 | $(CC) $(CFLAGS) -I- -I. $(patsubst %,-I%,$(subst :, ,$(BB_SRC_DIR))) -c $< -o $*.o | ||
362 | endif | ||
355 | 363 | ||
356 | $(PWD_OBJS): %.o: %.c Config.h busybox.h applets.h Makefile | 364 | $(PWD_OBJS): %.o: %.c Config.h busybox.h applets.h Makefile |
357 | - mkdir -p $(PWD_GRP) | 365 | - mkdir -p $(PWD_GRP) |
@@ -48,17 +48,17 @@ int chroot_main(int argc, char **argv) | |||
48 | prog = *argv; | 48 | prog = *argv; |
49 | execvp(*argv, argv); | 49 | execvp(*argv, argv); |
50 | } else { | 50 | } else { |
51 | #ifndef BB_SH | 51 | #if defined(BB_SH) && defined BB_FEATURE_SH_STANDALONE_SHELL |
52 | prog = getenv("SHELL"); | ||
53 | if (!prog) | ||
54 | prog = "/bin/sh"; | ||
55 | execlp(prog, prog, NULL); | ||
56 | #else | ||
57 | char shell[] = "/bin/sh"; | 52 | char shell[] = "/bin/sh"; |
58 | char *shell_argv[2] = { shell, NULL }; | 53 | char *shell_argv[2] = { shell, NULL }; |
59 | applet_name = shell; | 54 | applet_name = shell; |
60 | shell_main(1, shell_argv); | 55 | shell_main(1, shell_argv); |
61 | return EXIT_SUCCESS; | 56 | return EXIT_SUCCESS; |
57 | #else | ||
58 | prog = getenv("SHELL"); | ||
59 | if (!prog) | ||
60 | prog = "/bin/sh"; | ||
61 | execlp(prog, prog, NULL); | ||
62 | #endif | 62 | #endif |
63 | } | 63 | } |
64 | perror_msg_and_die("cannot execute %s", prog); | 64 | perror_msg_and_die("cannot execute %s", prog); |
diff --git a/coreutils/chroot.c b/coreutils/chroot.c index f2d9b4d00..0440e46b9 100644 --- a/coreutils/chroot.c +++ b/coreutils/chroot.c | |||
@@ -48,17 +48,17 @@ int chroot_main(int argc, char **argv) | |||
48 | prog = *argv; | 48 | prog = *argv; |
49 | execvp(*argv, argv); | 49 | execvp(*argv, argv); |
50 | } else { | 50 | } else { |
51 | #ifndef BB_SH | 51 | #if defined(BB_SH) && defined BB_FEATURE_SH_STANDALONE_SHELL |
52 | prog = getenv("SHELL"); | ||
53 | if (!prog) | ||
54 | prog = "/bin/sh"; | ||
55 | execlp(prog, prog, NULL); | ||
56 | #else | ||
57 | char shell[] = "/bin/sh"; | 52 | char shell[] = "/bin/sh"; |
58 | char *shell_argv[2] = { shell, NULL }; | 53 | char *shell_argv[2] = { shell, NULL }; |
59 | applet_name = shell; | 54 | applet_name = shell; |
60 | shell_main(1, shell_argv); | 55 | shell_main(1, shell_argv); |
61 | return EXIT_SUCCESS; | 56 | return EXIT_SUCCESS; |
57 | #else | ||
58 | prog = getenv("SHELL"); | ||
59 | if (!prog) | ||
60 | prog = "/bin/sh"; | ||
61 | execlp(prog, prog, NULL); | ||
62 | #endif | 62 | #endif |
63 | } | 63 | } |
64 | perror_msg_and_die("cannot execute %s", prog); | 64 | perror_msg_and_die("cannot execute %s", prog); |
diff --git a/debian/Config.h-deb b/debian/Config.h-deb index f8b2bdc0c..892ce1303 100644 --- a/debian/Config.h-deb +++ b/debian/Config.h-deb | |||
@@ -78,13 +78,15 @@ | |||
78 | #define BB_MKNOD | 78 | #define BB_MKNOD |
79 | #define BB_MKSWAP | 79 | #define BB_MKSWAP |
80 | //#define BB_MKTEMP | 80 | //#define BB_MKTEMP |
81 | //#define BB_NC | 81 | //#define BB_MODPROBE |
82 | #define BB_MORE | 82 | #define BB_MORE |
83 | #define BB_MOUNT | 83 | #define BB_MOUNT |
84 | //#define BB_MSH | 84 | //#define BB_MSH |
85 | //#define BB_MT | 85 | //#define BB_MT |
86 | #define BB_MV | 86 | #define BB_MV |
87 | //#define BB_NC | ||
87 | //#define BB_NSLOOKUP | 88 | //#define BB_NSLOOKUP |
89 | //#define BB_PIDOF | ||
88 | #define BB_PING | 90 | #define BB_PING |
89 | //#define BB_PIVOT_ROOT | 91 | //#define BB_PIVOT_ROOT |
90 | #define BB_POWEROFF | 92 | #define BB_POWEROFF |
@@ -117,6 +119,7 @@ | |||
117 | //#define BB_TFTP | 119 | //#define BB_TFTP |
118 | #define BB_TOUCH | 120 | #define BB_TOUCH |
119 | #define BB_TR | 121 | #define BB_TR |
122 | //#define BB_TRACEROUTE | ||
120 | #define BB_TRUE_FALSE | 123 | #define BB_TRUE_FALSE |
121 | #define BB_TTY | 124 | #define BB_TTY |
122 | //#define BB_UNIX2DOS | 125 | //#define BB_UNIX2DOS |
@@ -468,4 +471,3 @@ | |||
468 | # define BB_SH | 471 | # define BB_SH |
469 | # define shell_main msh_main | 472 | # define shell_main msh_main |
470 | #endif | 473 | #endif |
471 | |||
diff --git a/debian/Config.h-static b/debian/Config.h-static index 90d7e155e..71f6df0d0 100644 --- a/debian/Config.h-static +++ b/debian/Config.h-static | |||
@@ -52,7 +52,7 @@ | |||
52 | #define BB_HEAD | 52 | #define BB_HEAD |
53 | #define BB_HOSTID | 53 | #define BB_HOSTID |
54 | #define BB_HOSTNAME | 54 | #define BB_HOSTNAME |
55 | #define BB_HUSH | 55 | //#define BB_HUSH |
56 | #define BB_ID | 56 | #define BB_ID |
57 | #define BB_IFCONFIG | 57 | #define BB_IFCONFIG |
58 | #define BB_INIT | 58 | #define BB_INIT |
@@ -60,7 +60,7 @@ | |||
60 | #define BB_KILL | 60 | #define BB_KILL |
61 | #define BB_KILLALL | 61 | #define BB_KILLALL |
62 | #define BB_KLOGD | 62 | #define BB_KLOGD |
63 | #define BB_LASH | 63 | //#define BB_LASH |
64 | #define BB_LENGTH | 64 | #define BB_LENGTH |
65 | #define BB_LN | 65 | #define BB_LN |
66 | #define BB_LOADACM | 66 | #define BB_LOADACM |
@@ -78,13 +78,15 @@ | |||
78 | #define BB_MKNOD | 78 | #define BB_MKNOD |
79 | #define BB_MKSWAP | 79 | #define BB_MKSWAP |
80 | #define BB_MKTEMP | 80 | #define BB_MKTEMP |
81 | #define BB_NC | 81 | //#define BB_MODPROBE |
82 | #define BB_MORE | 82 | #define BB_MORE |
83 | #define BB_MOUNT | 83 | #define BB_MOUNT |
84 | #define BB_MSH | 84 | //#define BB_MSH |
85 | #define BB_MT | 85 | #define BB_MT |
86 | #define BB_MV | 86 | #define BB_MV |
87 | #define BB_NC | ||
87 | #define BB_NSLOOKUP | 88 | #define BB_NSLOOKUP |
89 | #define BB_PIDOF | ||
88 | #define BB_PING | 90 | #define BB_PING |
89 | #define BB_PIVOT_ROOT | 91 | #define BB_PIVOT_ROOT |
90 | #define BB_POWEROFF | 92 | #define BB_POWEROFF |
@@ -117,6 +119,7 @@ | |||
117 | #define BB_TFTP | 119 | #define BB_TFTP |
118 | #define BB_TOUCH | 120 | #define BB_TOUCH |
119 | #define BB_TR | 121 | #define BB_TR |
122 | #define BB_TRACEROUTE | ||
120 | #define BB_TRUE_FALSE | 123 | #define BB_TRUE_FALSE |
121 | #define BB_TTY | 124 | #define BB_TTY |
122 | #define BB_UNIX2DOS | 125 | #define BB_UNIX2DOS |
@@ -148,10 +151,10 @@ | |||
148 | // | 151 | // |
149 | // If you enabled one or more of the shells, you may select which one | 152 | // If you enabled one or more of the shells, you may select which one |
150 | // should be run when sh is invoked: | 153 | // should be run when sh is invoked: |
151 | //#define BB_FEATURE_SH_IS_ASH | 154 | #define BB_FEATURE_SH_IS_ASH |
152 | //#define BB_FEATURE_SH_IS_HUSH | 155 | //#define BB_FEATURE_SH_IS_HUSH |
153 | //#define BB_FEATURE_SH_IS_LASH | 156 | //#define BB_FEATURE_SH_IS_LASH |
154 | #define BB_FEATURE_SH_IS_MSH | 157 | //#define BB_FEATURE_SH_IS_MSH |
155 | // | 158 | // |
156 | // BusyBox will, by default, malloc space for its buffers. This costs code | 159 | // BusyBox will, by default, malloc space for its buffers. This costs code |
157 | // size for the call to xmalloc. You can use the following feature to have | 160 | // size for the call to xmalloc. You can use the following feature to have |
@@ -468,5 +471,3 @@ | |||
468 | # define BB_SH | 471 | # define BB_SH |
469 | # define shell_main msh_main | 472 | # define shell_main msh_main |
470 | #endif | 473 | #endif |
471 | |||
472 | |||
diff --git a/debian/Config.h-udeb b/debian/Config.h-udeb index d3994a404..51446ff89 100644 --- a/debian/Config.h-udeb +++ b/debian/Config.h-udeb | |||
@@ -78,13 +78,15 @@ | |||
78 | #define BB_MKNOD | 78 | #define BB_MKNOD |
79 | #define BB_MKSWAP | 79 | #define BB_MKSWAP |
80 | //#define BB_MKTEMP | 80 | //#define BB_MKTEMP |
81 | //#define BB_NC | 81 | //#define BB_MODPROBE |
82 | #define BB_MORE | 82 | #define BB_MORE |
83 | #define BB_MOUNT | 83 | #define BB_MOUNT |
84 | //#define BB_MSH | 84 | //#define BB_MSH |
85 | //#define BB_MT | 85 | //#define BB_MT |
86 | #define BB_MV | 86 | #define BB_MV |
87 | //#define BB_NC | ||
87 | //#define BB_NSLOOKUP | 88 | //#define BB_NSLOOKUP |
89 | //#define BB_PIDOF | ||
88 | #define BB_PING | 90 | #define BB_PING |
89 | #define BB_PIVOT_ROOT | 91 | #define BB_PIVOT_ROOT |
90 | #define BB_POWEROFF | 92 | #define BB_POWEROFF |
@@ -117,6 +119,7 @@ | |||
117 | //#define BB_TFTP | 119 | //#define BB_TFTP |
118 | #define BB_TOUCH | 120 | #define BB_TOUCH |
119 | #define BB_TR | 121 | #define BB_TR |
122 | //#define BB_TRACEROUTE | ||
120 | #define BB_TRUE_FALSE | 123 | #define BB_TRUE_FALSE |
121 | #define BB_TTY | 124 | #define BB_TTY |
122 | //#define BB_UNIX2DOS | 125 | //#define BB_UNIX2DOS |
@@ -468,6 +471,3 @@ | |||
468 | # define BB_SH | 471 | # define BB_SH |
469 | # define shell_main msh_main | 472 | # define shell_main msh_main |
470 | #endif | 473 | #endif |
471 | |||
472 | |||
473 | |||