diff options
author | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2005-10-12 15:21:32 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2005-10-12 15:21:32 +0000 |
commit | 86a1073e0bfa608defbfaa43d94a537c5e700efe (patch) | |
tree | 5ddadc40c59ab1c9243329c2e914e67b4dadd7a5 | |
parent | 3ade65fc0451e898f3750a581c9a12abfe04b57e (diff) | |
download | busybox-w32-86a1073e0bfa608defbfaa43d94a537c5e700efe.tar.gz busybox-w32-86a1073e0bfa608defbfaa43d94a537c5e700efe.tar.bz2 busybox-w32-86a1073e0bfa608defbfaa43d94a537c5e700efe.zip |
bb_dev_null
-rw-r--r-- | include/libbb.h | 2 | ||||
-rw-r--r-- | libbb/Makefile.in | 2 | ||||
-rw-r--r-- | libbb/bb_pwd.c | 6 | ||||
-rw-r--r-- | libbb/messages.c | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/include/libbb.h b/include/libbb.h index ee5fb8475..e3087db18 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -332,7 +332,7 @@ extern const char * const bb_path_gshadow_file; | |||
332 | extern const char * const bb_path_group_file; | 332 | extern const char * const bb_path_group_file; |
333 | extern const char * const bb_path_securetty_file; | 333 | extern const char * const bb_path_securetty_file; |
334 | extern const char * const bb_path_motd_file; | 334 | extern const char * const bb_path_motd_file; |
335 | 335 | extern const char * const bb_dev_null; | |
336 | /* | 336 | /* |
337 | * You can change LIBBB_DEFAULT_LOGIN_SHELL, but don`t use, | 337 | * You can change LIBBB_DEFAULT_LOGIN_SHELL, but don`t use, |
338 | * use bb_default_login_shell and next defines, | 338 | * use bb_default_login_shell and next defines, |
diff --git a/libbb/Makefile.in b/libbb/Makefile.in index 36b2ad212..69f8779d2 100644 --- a/libbb/Makefile.in +++ b/libbb/Makefile.in | |||
@@ -47,7 +47,7 @@ LIBBB_MOBJ0:=full_version.o \ | |||
47 | can_not_create_raw_socket.o perm_denied_are_you_root.o \ | 47 | can_not_create_raw_socket.o perm_denied_are_you_root.o \ |
48 | shadow_file.o passwd_file.o group_file.o gshadow_file.o nologin_file.o \ | 48 | shadow_file.o passwd_file.o group_file.o gshadow_file.o nologin_file.o \ |
49 | securetty_file.o motd_file.o \ | 49 | securetty_file.o motd_file.o \ |
50 | msg_standard_input.o msg_standard_output.o shell_file.o | 50 | msg_standard_input.o msg_standard_output.o shell_file.o bb_dev_null.o |
51 | 51 | ||
52 | LIBBB_MSRC1:=$(srcdir)/xfuncs.c | 52 | LIBBB_MSRC1:=$(srcdir)/xfuncs.c |
53 | LIBBB_MOBJ1:=xmalloc.o xrealloc.o xcalloc.o xstrdup.o xstrndup.o \ | 53 | LIBBB_MOBJ1:=xmalloc.o xrealloc.o xcalloc.o xstrdup.o xstrndup.o \ |
diff --git a/libbb/bb_pwd.c b/libbb/bb_pwd.c index 9ce1c7150..cbd72af2f 100644 --- a/libbb/bb_pwd.c +++ b/libbb/bb_pwd.c | |||
@@ -7,6 +7,7 @@ | |||
7 | * Licensed under the GPL v2, see the file LICENSE in this tarball. | 7 | * Licensed under the GPL v2, see the file LICENSE in this tarball. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "libbb.h" | ||
10 | 11 | ||
11 | #ifdef L_bb_getgrgid | 12 | #ifdef L_bb_getgrgid |
12 | /* Hacked by Tito Ragusa (c) 2004 <farmatito@tiscali.it> to make it more | 13 | /* Hacked by Tito Ragusa (c) 2004 <farmatito@tiscali.it> to make it more |
@@ -26,7 +27,6 @@ | |||
26 | * the program exits. | 27 | * the program exits. |
27 | */ | 28 | */ |
28 | 29 | ||
29 | #include "libbb.h" | ||
30 | #include "grp_.h" | 30 | #include "grp_.h" |
31 | 31 | ||
32 | /* gets a groupname given a gid */ | 32 | /* gets a groupname given a gid */ |
@@ -42,7 +42,6 @@ char * bb_getgrgid(char *group, long gid, int bufsize) | |||
42 | #ifdef L_bb_xgetgrnam | 42 | #ifdef L_bb_xgetgrnam |
43 | #include <stdio.h> | 43 | #include <stdio.h> |
44 | #include <string.h> | 44 | #include <string.h> |
45 | #include "libbb.h" | ||
46 | #include "pwd_.h" | 45 | #include "pwd_.h" |
47 | #include "grp_.h" | 46 | #include "grp_.h" |
48 | 47 | ||
@@ -63,7 +62,6 @@ long bb_xgetgrnam(const char *name) | |||
63 | #ifdef L_bb_xgetpwnam | 62 | #ifdef L_bb_xgetpwnam |
64 | #include <stdio.h> | 63 | #include <stdio.h> |
65 | #include <string.h> | 64 | #include <string.h> |
66 | #include "libbb.h" | ||
67 | #include "pwd_.h" | 65 | #include "pwd_.h" |
68 | #include "grp_.h" | 66 | #include "grp_.h" |
69 | 67 | ||
@@ -99,7 +97,6 @@ long bb_xgetpwnam(const char *name) | |||
99 | * the program exits. | 97 | * the program exits. |
100 | */ | 98 | */ |
101 | 99 | ||
102 | #include "libbb.h" | ||
103 | #include "pwd_.h" | 100 | #include "pwd_.h" |
104 | 101 | ||
105 | /* gets a username given a uid */ | 102 | /* gets a username given a uid */ |
@@ -129,7 +126,6 @@ char * bb_getpwuid(char *name, long uid, int bufsize) | |||
129 | 126 | ||
130 | #include <stdio.h> | 127 | #include <stdio.h> |
131 | #include <assert.h> | 128 | #include <assert.h> |
132 | #include "libbb.h" | ||
133 | 129 | ||
134 | 130 | ||
135 | /* internal function for bb_getpwuid and bb_getgrgid */ | 131 | /* internal function for bb_getpwuid and bb_getgrgid */ |
diff --git a/libbb/messages.c b/libbb/messages.c index c3f307ec5..e6e4dc30d 100644 --- a/libbb/messages.c +++ b/libbb/messages.c | |||
@@ -97,3 +97,7 @@ const char * const bb_path_motd_file = MOTD_FILE; | |||
97 | const char * const bb_default_login_shell = LIBBB_DEFAULT_LOGIN_SHELL; | 97 | const char * const bb_default_login_shell = LIBBB_DEFAULT_LOGIN_SHELL; |
98 | #endif | 98 | #endif |
99 | 99 | ||
100 | #ifdef L_dev_null | ||
101 | const char * const bb_dev_null = "dev/null"; | ||
102 | #endif | ||
103 | |||