diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-07-03 23:19:26 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-07-03 23:19:26 +0000 |
commit | 887ca79f04cdf45874ed783c1fb9b950bf25a246 (patch) | |
tree | 25f08b2b2ea8b333aac91b6b75876f82a4cfef6f | |
parent | 360e2549544b813dd805361d04744c5a4a630bb8 (diff) | |
download | busybox-w32-887ca79f04cdf45874ed783c1fb9b950bf25a246.tar.gz busybox-w32-887ca79f04cdf45874ed783c1fb9b950bf25a246.tar.bz2 busybox-w32-887ca79f04cdf45874ed783c1fb9b950bf25a246.zip |
Scrub pwd.h and grp.h handling so we don't have to play any
silly games.
-Erik
31 files changed, 42 insertions, 42 deletions
@@ -91,7 +91,7 @@ export VERSION BUILDTIME TOPDIR HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP | |||
91 | 91 | ||
92 | # To compile vs uClibc, just use the compiler wrapper built by uClibc... | 92 | # To compile vs uClibc, just use the compiler wrapper built by uClibc... |
93 | # Everything should compile and work as expected these days... | 93 | # Everything should compile and work as expected these days... |
94 | #CC:=/usr/i386-linux-uclibc/usr/bin/i386-uclibc-gcc | 94 | #CC:=/usr/i386-linux-uclibc/bin/i386-uclibc-gcc |
95 | 95 | ||
96 | # To compile vs some other alternative libc, you may need to use/adjust | 96 | # To compile vs some other alternative libc, you may need to use/adjust |
97 | # the following lines to meet your needs... | 97 | # the following lines to meet your needs... |
diff --git a/applets/applets.c b/applets/applets.c index 9dcfe6b85..cfcff3a53 100644 --- a/applets/applets.c +++ b/applets/applets.c | |||
@@ -50,8 +50,8 @@ static void check_suid ( struct BB_applet *app ); | |||
50 | 50 | ||
51 | #include <sys/stat.h> | 51 | #include <sys/stat.h> |
52 | #include <ctype.h> | 52 | #include <ctype.h> |
53 | #include "pwd.h" | 53 | #include "pwd_.h" |
54 | #include "grp.h" | 54 | #include "grp_.h" |
55 | 55 | ||
56 | static int parse_config_file ( void ); | 56 | static int parse_config_file ( void ); |
57 | 57 | ||
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index 6e7705ed1..a5ac002e9 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c | |||
@@ -29,8 +29,8 @@ | |||
29 | #include <string.h> | 29 | #include <string.h> |
30 | #include <stdlib.h> | 30 | #include <stdlib.h> |
31 | #include "busybox.h" | 31 | #include "busybox.h" |
32 | #include "pwd.h" | 32 | #include "pwd_.h" |
33 | #include "grp.h" | 33 | #include "grp_.h" |
34 | 34 | ||
35 | /*struct passwd *getpwnam();*/ | 35 | /*struct passwd *getpwnam();*/ |
36 | 36 | ||
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c index 6b090437f..576526183 100644 --- a/debianutils/start_stop_daemon.c +++ b/debianutils/start_stop_daemon.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <unistd.h> | 18 | #include <unistd.h> |
19 | 19 | ||
20 | #include "busybox.h" | 20 | #include "busybox.h" |
21 | #include "pwd.h" | 21 | #include "pwd_.h" |
22 | 22 | ||
23 | static int start = 0; | 23 | static int start = 0; |
24 | static int stop = 0; | 24 | static int stop = 0; |
diff --git a/include/grp.h b/include/grp_.h index 12fecd02e..0ce274cf0 100644 --- a/include/grp.h +++ b/include/grp_.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define __CONFIG_GRP_H | 2 | #define __CONFIG_GRP_H |
3 | 3 | ||
4 | #if !defined CONFIG_USE_BB_PWD_GRP | 4 | #if !defined CONFIG_USE_BB_PWD_GRP |
5 | #include_next <grp.h> | 5 | #include <grp.h> |
6 | 6 | ||
7 | #else | 7 | #else |
8 | 8 | ||
diff --git a/include/libbb.h b/include/libbb.h index f83cc7623..02babb884 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -39,8 +39,8 @@ | |||
39 | 39 | ||
40 | #include "config.h" | 40 | #include "config.h" |
41 | 41 | ||
42 | #include "pwd.h" | 42 | #include "pwd_.h" |
43 | #include "grp.h" | 43 | #include "grp_.h" |
44 | #ifdef CONFIG_FEATURE_SHADOWPASSWDS | 44 | #ifdef CONFIG_FEATURE_SHADOWPASSWDS |
45 | #include "shadow_.h" | 45 | #include "shadow_.h" |
46 | #endif | 46 | #endif |
diff --git a/include/pwd.h b/include/pwd_.h index 178e9e97a..3f081e872 100644 --- a/include/pwd.h +++ b/include/pwd_.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define __CONFIG_PWD_H | 2 | #define __CONFIG_PWD_H |
3 | 3 | ||
4 | #if !defined CONFIG_USE_BB_PWD_GRP | 4 | #if !defined CONFIG_USE_BB_PWD_GRP |
5 | #include_next <pwd.h> | 5 | #include <pwd.h> |
6 | 6 | ||
7 | #else | 7 | #else |
8 | 8 | ||
diff --git a/init/start_stop_daemon.c b/init/start_stop_daemon.c index 6b090437f..576526183 100644 --- a/init/start_stop_daemon.c +++ b/init/start_stop_daemon.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <unistd.h> | 18 | #include <unistd.h> |
19 | 19 | ||
20 | #include "busybox.h" | 20 | #include "busybox.h" |
21 | #include "pwd.h" | 21 | #include "pwd_.h" |
22 | 22 | ||
23 | static int start = 0; | 23 | static int start = 0; |
24 | static int stop = 0; | 24 | static int stop = 0; |
diff --git a/libbb/my_getgrgid.c b/libbb/my_getgrgid.c index bf2067e46..88bafc97b 100644 --- a/libbb/my_getgrgid.c +++ b/libbb/my_getgrgid.c | |||
@@ -22,8 +22,8 @@ | |||
22 | #include <stdio.h> | 22 | #include <stdio.h> |
23 | #include <string.h> | 23 | #include <string.h> |
24 | #include "libbb.h" | 24 | #include "libbb.h" |
25 | #include "pwd.h" | 25 | #include "pwd_.h" |
26 | #include "grp.h" | 26 | #include "grp_.h" |
27 | 27 | ||
28 | 28 | ||
29 | /* gets a groupname given a gid */ | 29 | /* gets a groupname given a gid */ |
diff --git a/libbb/my_getgrnam.c b/libbb/my_getgrnam.c index f21d482c6..f80d3f824 100644 --- a/libbb/my_getgrnam.c +++ b/libbb/my_getgrnam.c | |||
@@ -22,8 +22,8 @@ | |||
22 | #include <stdio.h> | 22 | #include <stdio.h> |
23 | #include <string.h> | 23 | #include <string.h> |
24 | #include "libbb.h" | 24 | #include "libbb.h" |
25 | #include "pwd.h" | 25 | #include "pwd_.h" |
26 | #include "grp.h" | 26 | #include "grp_.h" |
27 | 27 | ||
28 | 28 | ||
29 | /* returns a gid given a group name */ | 29 | /* returns a gid given a group name */ |
diff --git a/libbb/my_getpwnam.c b/libbb/my_getpwnam.c index db7f4a65f..04951a4d0 100644 --- a/libbb/my_getpwnam.c +++ b/libbb/my_getpwnam.c | |||
@@ -22,8 +22,8 @@ | |||
22 | #include <stdio.h> | 22 | #include <stdio.h> |
23 | #include <string.h> | 23 | #include <string.h> |
24 | #include "libbb.h" | 24 | #include "libbb.h" |
25 | #include "pwd.h" | 25 | #include "pwd_.h" |
26 | #include "grp.h" | 26 | #include "grp_.h" |
27 | 27 | ||
28 | 28 | ||
29 | /* returns a uid given a username */ | 29 | /* returns a uid given a username */ |
diff --git a/libbb/my_getpwnamegid.c b/libbb/my_getpwnamegid.c index 4866b9717..07e02c1cf 100644 --- a/libbb/my_getpwnamegid.c +++ b/libbb/my_getpwnamegid.c | |||
@@ -22,8 +22,8 @@ | |||
22 | #include <stdio.h> | 22 | #include <stdio.h> |
23 | #include <string.h> | 23 | #include <string.h> |
24 | #include "libbb.h" | 24 | #include "libbb.h" |
25 | #include "pwd.h" | 25 | #include "pwd_.h" |
26 | #include "grp.h" | 26 | #include "grp_.h" |
27 | 27 | ||
28 | 28 | ||
29 | 29 | ||
diff --git a/libbb/my_getpwuid.c b/libbb/my_getpwuid.c index 5236c7df3..2abe7a7f3 100644 --- a/libbb/my_getpwuid.c +++ b/libbb/my_getpwuid.c | |||
@@ -22,8 +22,8 @@ | |||
22 | #include <stdio.h> | 22 | #include <stdio.h> |
23 | #include <string.h> | 23 | #include <string.h> |
24 | #include "libbb.h" | 24 | #include "libbb.h" |
25 | #include "pwd.h" | 25 | #include "pwd_.h" |
26 | #include "grp.h" | 26 | #include "grp_.h" |
27 | 27 | ||
28 | 28 | ||
29 | 29 | ||
diff --git a/libpwdgrp/__getgrent.c b/libpwdgrp/__getgrent.c index 571da3fc3..39cf1890a 100644 --- a/libpwdgrp/__getgrent.c +++ b/libpwdgrp/__getgrent.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <unistd.h> | 23 | #include <unistd.h> |
24 | #include <stdlib.h> | 24 | #include <stdlib.h> |
25 | #include <string.h> | 25 | #include <string.h> |
26 | #include "grp.h" | 26 | #include "grp_.h" |
27 | 27 | ||
28 | /* | 28 | /* |
29 | * Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer | 29 | * Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer |
diff --git a/libpwdgrp/__getpwent.c b/libpwdgrp/__getpwent.c index e406b8824..d553250f4 100644 --- a/libpwdgrp/__getpwent.c +++ b/libpwdgrp/__getpwent.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <unistd.h> | 24 | #include <unistd.h> |
25 | #include <string.h> | 25 | #include <string.h> |
26 | #include <fcntl.h> | 26 | #include <fcntl.h> |
27 | #include "pwd.h" | 27 | #include "pwd_.h" |
28 | 28 | ||
29 | #define PWD_BUFFER_SIZE 256 | 29 | #define PWD_BUFFER_SIZE 256 |
30 | 30 | ||
diff --git a/libpwdgrp/fgetgrent.c b/libpwdgrp/fgetgrent.c index c5d63e05f..1492a1a95 100644 --- a/libpwdgrp/fgetgrent.c +++ b/libpwdgrp/fgetgrent.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | #include <stdio.h> | 23 | #include <stdio.h> |
24 | #include <errno.h> | 24 | #include <errno.h> |
25 | #include "grp.h" | 25 | #include "grp_.h" |
26 | 26 | ||
27 | struct group *fgetgrent(FILE * file) | 27 | struct group *fgetgrent(FILE * file) |
28 | { | 28 | { |
diff --git a/libpwdgrp/fgetpwent.c b/libpwdgrp/fgetpwent.c index 6537600ff..54c3b3adc 100644 --- a/libpwdgrp/fgetpwent.c +++ b/libpwdgrp/fgetpwent.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | #include <errno.h> | 23 | #include <errno.h> |
24 | #include <stdio.h> | 24 | #include <stdio.h> |
25 | #include "pwd.h" | 25 | #include "pwd_.h" |
26 | 26 | ||
27 | struct passwd *fgetpwent(FILE * file) | 27 | struct passwd *fgetpwent(FILE * file) |
28 | { | 28 | { |
diff --git a/libpwdgrp/getgrgid.c b/libpwdgrp/getgrgid.c index e70346a77..73f0cca97 100644 --- a/libpwdgrp/getgrgid.c +++ b/libpwdgrp/getgrgid.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <sys/types.h> | 23 | #include <sys/types.h> |
24 | #include <unistd.h> | 24 | #include <unistd.h> |
25 | #include <fcntl.h> | 25 | #include <fcntl.h> |
26 | #include "grp.h" | 26 | #include "grp_.h" |
27 | 27 | ||
28 | struct group *getgrgid(const gid_t gid) | 28 | struct group *getgrgid(const gid_t gid) |
29 | { | 29 | { |
diff --git a/libpwdgrp/getgrnam.c b/libpwdgrp/getgrnam.c index 62b2b26ca..919622ea1 100644 --- a/libpwdgrp/getgrnam.c +++ b/libpwdgrp/getgrnam.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <string.h> | 24 | #include <string.h> |
25 | #include <errno.h> | 25 | #include <errno.h> |
26 | #include <fcntl.h> | 26 | #include <fcntl.h> |
27 | #include "grp.h" | 27 | #include "grp_.h" |
28 | 28 | ||
29 | struct group *getgrnam(const char *name) | 29 | struct group *getgrnam(const char *name) |
30 | { | 30 | { |
diff --git a/libpwdgrp/getpw.c b/libpwdgrp/getpw.c index ca11188aa..d46e2c7da 100644 --- a/libpwdgrp/getpw.c +++ b/libpwdgrp/getpw.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <sys/types.h> | 23 | #include <sys/types.h> |
24 | #include <errno.h> | 24 | #include <errno.h> |
25 | #include <stdio.h> | 25 | #include <stdio.h> |
26 | #include "pwd.h" | 26 | #include "pwd_.h" |
27 | 27 | ||
28 | int getpw(uid_t uid, char *buf) | 28 | int getpw(uid_t uid, char *buf) |
29 | { | 29 | { |
diff --git a/libpwdgrp/getpwnam.c b/libpwdgrp/getpwnam.c index 88a31f8c2..524fa09be 100644 --- a/libpwdgrp/getpwnam.c +++ b/libpwdgrp/getpwnam.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <string.h> | 24 | #include <string.h> |
25 | #include <errno.h> | 25 | #include <errno.h> |
26 | #include <fcntl.h> | 26 | #include <fcntl.h> |
27 | #include "pwd.h" | 27 | #include "pwd_.h" |
28 | 28 | ||
29 | 29 | ||
30 | struct passwd *getpwnam(const char *name) | 30 | struct passwd *getpwnam(const char *name) |
diff --git a/libpwdgrp/getpwuid.c b/libpwdgrp/getpwuid.c index 776ed12da..819c874ac 100644 --- a/libpwdgrp/getpwuid.c +++ b/libpwdgrp/getpwuid.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
24 | #include <unistd.h> | 24 | #include <unistd.h> |
25 | #include <fcntl.h> | 25 | #include <fcntl.h> |
26 | #include "pwd.h" | 26 | #include "pwd_.h" |
27 | 27 | ||
28 | struct passwd *getpwuid(uid_t uid) | 28 | struct passwd *getpwuid(uid_t uid) |
29 | { | 29 | { |
diff --git a/libpwdgrp/grent.c b/libpwdgrp/grent.c index 5b1cb6823..df9195599 100644 --- a/libpwdgrp/grent.c +++ b/libpwdgrp/grent.c | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | #include <unistd.h> | 29 | #include <unistd.h> |
30 | #include <fcntl.h> | 30 | #include <fcntl.h> |
31 | #include "grp.h" | 31 | #include "grp_.h" |
32 | 32 | ||
33 | static int grp_fd = -1; | 33 | static int grp_fd = -1; |
34 | 34 | ||
diff --git a/libpwdgrp/initgroups.c b/libpwdgrp/initgroups.c index 9b5dcbcb2..57b25f343 100644 --- a/libpwdgrp/initgroups.c +++ b/libpwdgrp/initgroups.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <unistd.h> | 23 | #include <unistd.h> |
24 | #include <string.h> | 24 | #include <string.h> |
25 | #include <fcntl.h> | 25 | #include <fcntl.h> |
26 | #include "grp.h" | 26 | #include "grp_.h" |
27 | 27 | ||
28 | /* | 28 | /* |
29 | * Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer | 29 | * Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer |
diff --git a/libpwdgrp/putpwent.c b/libpwdgrp/putpwent.c index 88dffc952..de285ebaf 100644 --- a/libpwdgrp/putpwent.c +++ b/libpwdgrp/putpwent.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | #include <stdio.h> | 23 | #include <stdio.h> |
24 | #include <errno.h> | 24 | #include <errno.h> |
25 | #include "pwd.h" | 25 | #include "pwd_.h" |
26 | 26 | ||
27 | int putpwent(const struct passwd *passwd, FILE * f) | 27 | int putpwent(const struct passwd *passwd, FILE * f) |
28 | { | 28 | { |
diff --git a/libpwdgrp/pwent.c b/libpwdgrp/pwent.c index 84bd6176b..1f4239741 100644 --- a/libpwdgrp/pwent.c +++ b/libpwdgrp/pwent.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <unistd.h> | 23 | #include <unistd.h> |
24 | #include <stdlib.h> | 24 | #include <stdlib.h> |
25 | #include <errno.h> | 25 | #include <errno.h> |
26 | #include "pwd.h" | 26 | #include "pwd_.h" |
27 | #include <fcntl.h> | 27 | #include <fcntl.h> |
28 | 28 | ||
29 | /* | 29 | /* |
diff --git a/libpwdgrp/setgroups.c b/libpwdgrp/setgroups.c index c9b86f016..c3af1ea77 100644 --- a/libpwdgrp/setgroups.c +++ b/libpwdgrp/setgroups.c | |||
@@ -35,7 +35,7 @@ | |||
35 | /* This is needed for libc5 */ | 35 | /* This is needed for libc5 */ |
36 | #include <asm/unistd.h> | 36 | #include <asm/unistd.h> |
37 | #endif | 37 | #endif |
38 | #include "grp.h" | 38 | #include "grp_.h" |
39 | 39 | ||
40 | //#define __NR_setgroups 81 | 40 | //#define __NR_setgroups 81 |
41 | _syscall2(int, setgroups, size_t, size, const gid_t *, list); | 41 | _syscall2(int, setgroups, size_t, size, const gid_t *, list); |
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c index 87e98fb18..4a5ef8542 100644 --- a/loginutils/addgroup.c +++ b/loginutils/addgroup.c | |||
@@ -32,8 +32,8 @@ | |||
32 | #include <sys/types.h> | 32 | #include <sys/types.h> |
33 | #include <unistd.h> | 33 | #include <unistd.h> |
34 | #include "busybox.h" | 34 | #include "busybox.h" |
35 | #include "pwd.h" | 35 | #include "pwd_.h" |
36 | #include "grp.h" | 36 | #include "grp_.h" |
37 | 37 | ||
38 | 38 | ||
39 | /* structs __________________________ */ | 39 | /* structs __________________________ */ |
@@ -162,4 +162,4 @@ int addgroup_main(int argc, char **argv) | |||
162 | return addgroup(group_file, group, gid); | 162 | return addgroup(group_file, group, gid); |
163 | } | 163 | } |
164 | 164 | ||
165 | /* $Id: addgroup.c,v 1.2 2002/06/23 04:24:24 andersen Exp $ */ | 165 | /* $Id: addgroup.c,v 1.3 2002/07/03 23:19:18 andersen Exp $ */ |
diff --git a/networking/netstat.c b/networking/netstat.c index 67ecc0105..dcbcee21d 100644 --- a/networking/netstat.c +++ b/networking/netstat.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <unistd.h> | 34 | #include <unistd.h> |
35 | #include "inet_common.h" | 35 | #include "inet_common.h" |
36 | #include "busybox.h" | 36 | #include "busybox.h" |
37 | #include "pwd.h" | 37 | #include "pwd_.h" |
38 | 38 | ||
39 | #ifdef CONFIG_ROUTE | 39 | #ifdef CONFIG_ROUTE |
40 | extern void displayroutes(int noresolve, int netstatfmt); | 40 | extern void displayroutes(int noresolve, int netstatfmt); |
diff --git a/shell/ash.c b/shell/ash.c index 80da35b59..366f704be 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -69,7 +69,7 @@ | |||
69 | #include <sys/types.h> | 69 | #include <sys/types.h> |
70 | #include <sys/wait.h> | 70 | #include <sys/wait.h> |
71 | #include "busybox.h" | 71 | #include "busybox.h" |
72 | #include "pwd.h" | 72 | #include "pwd_.h" |
73 | 73 | ||
74 | 74 | ||
75 | #if !defined(FNMATCH_BROKEN) | 75 | #if !defined(FNMATCH_BROKEN) |
@@ -12442,7 +12442,7 @@ findvar(struct var **vpp, const char *name) | |||
12442 | /* | 12442 | /* |
12443 | * Copyright (c) 1999 Herbert Xu <herbert@debian.org> | 12443 | * Copyright (c) 1999 Herbert Xu <herbert@debian.org> |
12444 | * This file contains code for the times builtin. | 12444 | * This file contains code for the times builtin. |
12445 | * $Id: ash.c,v 1.52 2002/06/06 12:07:28 andersen Exp $ | 12445 | * $Id: ash.c,v 1.53 2002/07/03 23:19:22 andersen Exp $ |
12446 | */ | 12446 | */ |
12447 | static int timescmd (int argc, char **argv) | 12447 | static int timescmd (int argc, char **argv) |
12448 | { | 12448 | { |
diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 4c502df12..c5f2e9da2 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c | |||
@@ -82,7 +82,7 @@ | |||
82 | 82 | ||
83 | #ifdef CONFIG_FEATURE_GETUSERNAME_AND_HOMEDIR | 83 | #ifdef CONFIG_FEATURE_GETUSERNAME_AND_HOMEDIR |
84 | # ifndef TEST | 84 | # ifndef TEST |
85 | # include "pwd.h" | 85 | # include "pwd_.h" |
86 | # else | 86 | # else |
87 | # include <pwd.h> | 87 | # include <pwd.h> |
88 | # endif /* TEST */ | 88 | # endif /* TEST */ |