- first pass to unify/cleanup uid handling (-236b)

This needs further love, alot of love.. Tito?
This commit is contained in:
Bernhard Reutner-Fischer
2008-07-21 14:41:33 +00:00
parent a53de7f7c2
commit d73cbd31a2
13 changed files with 26 additions and 26 deletions

View File

@ -129,11 +129,11 @@ int crontab_main(int argc UNUSED_PARAM, char **argv)
if (!pas)
bb_error_msg_and_die("user %s is not known", user_name);
} else {
/* XXX: xgetpwuid */
uid_t my_uid = getuid();
pas = getpwuid(my_uid);
if (!pas)
bb_perror_msg_and_die("no user record for UID %u",
(unsigned)my_uid);
bb_perror_msg_and_die("unknown uid %d", (int)my_uid);
}
#define user_name DONT_USE_ME_BEYOND_THIS_POINT