35 uid_t user_id = geteuid();
40 pw = getpwuid(user_id);
43 *errstr =
psprintf(
_(
"could not look up effective user ID %ld: %s"),
45 errno ?
strerror(errno) :
_(
"user does not exist"));
60 *errstr =
psprintf(
_(
"user name lookup failure: error code %lu"),
76 const char *user_name;
char * psprintf(const char *fmt,...)
const char * get_user_name_or_exit(const char *progname)
const char * get_user_name(char **errstr)