diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-21 14:41:33 +0000 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-21 14:41:33 +0000 |
| commit | d73cbd31a295ac757e59f129f162d9cd69440224 (patch) | |
| tree | 53d9c4cff7223be124698ec8cc3ccba4bded52eb /miscutils | |
| parent | a53de7f7c2cd3ac46b26642aafb1a573a096a80d (diff) | |
| download | busybox-w32-d73cbd31a295ac757e59f129f162d9cd69440224.tar.gz busybox-w32-d73cbd31a295ac757e59f129f162d9cd69440224.tar.bz2 busybox-w32-d73cbd31a295ac757e59f129f162d9cd69440224.zip | |
- first pass to unify/cleanup uid handling (-236b)
This needs further love, alot of love.. Tito?
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/crontab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c index 64ea4e616..f8662babb 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c | |||
| @@ -129,11 +129,11 @@ int crontab_main(int argc UNUSED_PARAM, char **argv) | |||
| 129 | if (!pas) | 129 | if (!pas) |
| 130 | bb_error_msg_and_die("user %s is not known", user_name); | 130 | bb_error_msg_and_die("user %s is not known", user_name); |
| 131 | } else { | 131 | } else { |
| 132 | /* XXX: xgetpwuid */ | ||
| 132 | uid_t my_uid = getuid(); | 133 | uid_t my_uid = getuid(); |
| 133 | pas = getpwuid(my_uid); | 134 | pas = getpwuid(my_uid); |
| 134 | if (!pas) | 135 | if (!pas) |
| 135 | bb_perror_msg_and_die("no user record for UID %u", | 136 | bb_perror_msg_and_die("unknown uid %d", (int)my_uid); |
| 136 | (unsigned)my_uid); | ||
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | #define user_name DONT_USE_ME_BEYOND_THIS_POINT | 139 | #define user_name DONT_USE_ME_BEYOND_THIS_POINT |
