diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/chgrp.c | 2 | ||||
-rw-r--r-- | coreutils/chown.c | 4 | ||||
-rw-r--r-- | coreutils/id.c | 16 | ||||
-rw-r--r-- | coreutils/install.c | 4 | ||||
-rw-r--r-- | coreutils/ls.c | 4 | ||||
-rw-r--r-- | coreutils/whoami.c | 2 |
6 files changed, 16 insertions, 16 deletions
diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c index 8cfb54241..70ac672c2 100644 --- a/coreutils/chgrp.c +++ b/coreutils/chgrp.c | |||
@@ -58,7 +58,7 @@ int chgrp_main(int argc, char **argv) | |||
58 | argv += optind; | 58 | argv += optind; |
59 | 59 | ||
60 | /* Find the selected group */ | 60 | /* Find the selected group */ |
61 | gid = get_ug_id(*argv, my_getgrnam); | 61 | gid = get_ug_id(*argv, bb_xgetgrnam); |
62 | ++argv; | 62 | ++argv; |
63 | 63 | ||
64 | /* Ok, ready to do the deed now */ | 64 | /* Ok, ready to do the deed now */ |
diff --git a/coreutils/chown.c b/coreutils/chown.c index 638745f17..daf77e294 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c | |||
@@ -77,11 +77,11 @@ int chown_main(int argc, char **argv) | |||
77 | gid = -1; | 77 | gid = -1; |
78 | if (groupName) { | 78 | if (groupName) { |
79 | *groupName++ = '\0'; | 79 | *groupName++ = '\0'; |
80 | gid = get_ug_id(groupName, my_getgrnam); | 80 | gid = get_ug_id(groupName, bb_xgetgrnam); |
81 | } | 81 | } |
82 | 82 | ||
83 | /* Now check for the username */ | 83 | /* Now check for the username */ |
84 | uid = get_ug_id(*argv, my_getpwnam); | 84 | uid = get_ug_id(*argv, bb_xgetpwnam); |
85 | 85 | ||
86 | ++argv; | 86 | ++argv; |
87 | 87 | ||
diff --git a/coreutils/id.c b/coreutils/id.c index 03c6a6d2a..28050ddf2 100644 --- a/coreutils/id.c +++ b/coreutils/id.c | |||
@@ -80,8 +80,8 @@ extern int id_main(int argc, char **argv) | |||
80 | 80 | ||
81 | if(argv[optind]) { | 81 | if(argv[optind]) { |
82 | p=getpwnam(argv[optind]); | 82 | p=getpwnam(argv[optind]); |
83 | /* my_getpwnam is needed because it exits on failure */ | 83 | /* bb_xgetpwnam is needed because it exits on failure */ |
84 | uid = my_getpwnam(argv[optind]); | 84 | uid = bb_xgetpwnam(argv[optind]); |
85 | gid = p->pw_gid; | 85 | gid = p->pw_gid; |
86 | /* in this case PRINT_REAL is the same */ | 86 | /* in this case PRINT_REAL is the same */ |
87 | } | 87 | } |
@@ -89,8 +89,8 @@ extern int id_main(int argc, char **argv) | |||
89 | if(flags & (JUST_GROUP | JUST_USER)) { | 89 | if(flags & (JUST_GROUP | JUST_USER)) { |
90 | /* JUST_GROUP and JUST_USER are mutually exclusive */ | 90 | /* JUST_GROUP and JUST_USER are mutually exclusive */ |
91 | if(flags & NAME_NOT_NUMBER) { | 91 | if(flags & NAME_NOT_NUMBER) { |
92 | /* my_getpwuid and my_getgrgid exit on failure so puts cannot segfault */ | 92 | /* bb_getpwuid and bb_getgrgid exit on failure so puts cannot segfault */ |
93 | puts((flags & JUST_USER) ? my_getpwuid(NULL, uid, -1 ) : my_getgrgid(NULL, gid, -1 )); | 93 | puts((flags & JUST_USER) ? bb_getpwuid(NULL, uid, -1 ) : bb_getgrgid(NULL, gid, -1 )); |
94 | } else { | 94 | } else { |
95 | bb_printf("%u\n",(flags & JUST_USER) ? uid : gid); | 95 | bb_printf("%u\n",(flags & JUST_USER) ? uid : gid); |
96 | } | 96 | } |
@@ -99,11 +99,11 @@ extern int id_main(int argc, char **argv) | |||
99 | } | 99 | } |
100 | 100 | ||
101 | /* Print full info like GNU id */ | 101 | /* Print full info like GNU id */ |
102 | /* my_getpwuid doesn't exit on failure here */ | 102 | /* bb_getpwuid doesn't exit on failure here */ |
103 | status=printf_full(uid, my_getpwuid(NULL, uid, 0), 'u'); | 103 | status=printf_full(uid, bb_getpwuid(NULL, uid, 0), 'u'); |
104 | putchar(' '); | 104 | putchar(' '); |
105 | /* my_getgrgid doesn't exit on failure here */ | 105 | /* bb_getgrgid doesn't exit on failure here */ |
106 | status|=printf_full(gid, my_getgrgid(NULL, gid, 0), 'g'); | 106 | status|=printf_full(gid, bb_getgrgid(NULL, gid, 0), 'g'); |
107 | 107 | ||
108 | #ifdef CONFIG_SELINUX | 108 | #ifdef CONFIG_SELINUX |
109 | if ( is_selinux_enabled() ) { | 109 | if ( is_selinux_enabled() ) { |
diff --git a/coreutils/install.c b/coreutils/install.c index 74e1d9acd..d0460412e 100644 --- a/coreutils/install.c +++ b/coreutils/install.c | |||
@@ -73,8 +73,8 @@ extern int install_main(int argc, char **argv) | |||
73 | copy_flags |= FILEUTILS_PRESERVE_STATUS; | 73 | copy_flags |= FILEUTILS_PRESERVE_STATUS; |
74 | } | 74 | } |
75 | bb_parse_mode(mode_str, &mode); | 75 | bb_parse_mode(mode_str, &mode); |
76 | gid = get_ug_id(gid_str, my_getgrnam); | 76 | gid = get_ug_id(gid_str, bb_xgetgrnam); |
77 | uid = get_ug_id(uid_str, my_getpwnam); | 77 | uid = get_ug_id(uid_str, bb_xgetpwnam); |
78 | umask(0); | 78 | umask(0); |
79 | 79 | ||
80 | /* Create directories | 80 | /* Create directories |
diff --git a/coreutils/ls.c b/coreutils/ls.c index 4dfa9f507..d8d814a74 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -692,9 +692,9 @@ static int list_single(struct dnode *dn) | |||
692 | break; | 692 | break; |
693 | case LIST_ID_NAME: | 693 | case LIST_ID_NAME: |
694 | #ifdef CONFIG_FEATURE_LS_USERNAME | 694 | #ifdef CONFIG_FEATURE_LS_USERNAME |
695 | my_getpwuid(scratch, dn->dstat.st_uid, sizeof(scratch)); | 695 | bb_getpwuid(scratch, dn->dstat.st_uid, sizeof(scratch)); |
696 | printf("%-8.8s ", scratch); | 696 | printf("%-8.8s ", scratch); |
697 | my_getgrgid(scratch, dn->dstat.st_gid, sizeof(scratch)); | 697 | bb_getgrgid(scratch, dn->dstat.st_gid, sizeof(scratch)); |
698 | printf("%-8.8s", scratch); | 698 | printf("%-8.8s", scratch); |
699 | column += 17; | 699 | column += 17; |
700 | break; | 700 | break; |
diff --git a/coreutils/whoami.c b/coreutils/whoami.c index 6a6e2eec9..16d28083c 100644 --- a/coreutils/whoami.c +++ b/coreutils/whoami.c | |||
@@ -32,7 +32,7 @@ extern int whoami_main(int argc, char **argv) | |||
32 | if (argc > 1) | 32 | if (argc > 1) |
33 | bb_show_usage(); | 33 | bb_show_usage(); |
34 | 34 | ||
35 | puts(my_getpwuid(NULL, geteuid(), -1)); | 35 | puts(bb_getpwuid(NULL, geteuid(), -1)); |
36 | /* exits on error */ | 36 | /* exits on error */ |
37 | bb_fflush_stdout_and_exit(EXIT_SUCCESS); | 37 | bb_fflush_stdout_and_exit(EXIT_SUCCESS); |
38 | } | 38 | } |