diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-02 22:56:59 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-02 22:56:59 +0000 |
commit | 0c68a874e7d996c62c8d00b0c0289180bdce1590 (patch) | |
tree | 57a06bc9317dd24ccf417874c2ecfb10b056adb2 /miscutils | |
parent | b6ddee242592ffd02c05ae3ed6127c1dd80d7580 (diff) | |
download | busybox-w32-0c68a874e7d996c62c8d00b0c0289180bdce1590.tar.gz busybox-w32-0c68a874e7d996c62c8d00b0c0289180bdce1590.tar.bz2 busybox-w32-0c68a874e7d996c62c8d00b0c0289180bdce1590.zip |
libbb: password/group function helpers rewritten by Tito:
function old new delta
xgetpwuid - 27 +27
uid2uname_utoa - 22 +22
gid2group_utoa - 22 +22
uid2uname - 18 +18
gid2group - 18 +18
buffer_fill_and_print 179 196 +17
print_user 12 24 +12
print_group 12 24 +12
get_cached 89 99 +10
...
print_common 134 120 -14
vlock_main 415 396 -19
logger_main 410 387 -23
crontab_main 642 609 -33
bb_getpwuid 42 - -42
bb_getgrgid 42 - -42
bb_getug 80 - -80
------------------------------------------------------------------------------
(add/remove: 6/3 grow/shrink: 9/11 up/down: 187/-296) Total: -109 bytes
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/crontab.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c index 673b558c3..902014963 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c | |||
@@ -130,11 +130,7 @@ int crontab_main(int argc UNUSED_PARAM, char **argv) | |||
130 | if (!pas) | 130 | if (!pas) |
131 | bb_error_msg_and_die("user %s is not known", user_name); | 131 | bb_error_msg_and_die("user %s is not known", user_name); |
132 | } else { | 132 | } else { |
133 | /* XXX: xgetpwuid */ | 133 | pas = xgetpwuid(getuid()); |
134 | uid_t my_uid = getuid(); | ||
135 | pas = getpwuid(my_uid); | ||
136 | if (!pas) | ||
137 | bb_perror_msg_and_die("unknown uid %d", (int)my_uid); | ||
138 | } | 134 | } |
139 | 135 | ||
140 | #define user_name DONT_USE_ME_BEYOND_THIS_POINT | 136 | #define user_name DONT_USE_ME_BEYOND_THIS_POINT |