Overview
Comment: | Normalized macro names |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | 25c96dfee924b0a3c87ed2bd135323fe8d4eec48 |
User & Date: | rkeene on 2014-02-07 21:12:26 |
Other Links: | manifest | tags |
Context
2014-02-07
| ||
21:44 | Added support for becoming a daemon check-in: 82653deb02 user: rkeene tags: trunk | |
21:12 | Normalized macro names check-in: 25c96dfee9 user: rkeene tags: trunk | |
21:10 | Updated to support disabling getpwnam() check-in: e7dc183669 user: rkeene tags: trunk | |
Changes
Modified filed.c from [27db71537c] to [f6d6d04c13].
743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 |
return; } /* Resolve a username to a UID */ static int filed_user_lookup(const char *user, uid_t *user_id) { char *next; uid_t user_id_check; #ifndef NO_GETPWNAM struct passwd *ent; ent = getpwnam(user); if (ent != NULL) { *user_id = ent->pw_uid; return(0); |
| |
743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 |
return;
}
/* Resolve a username to a UID */
static int filed_user_lookup(const char *user, uid_t *user_id) {
char *next;
uid_t user_id_check;
#ifndef FILED_NO_GETPWNAM
struct passwd *ent;
ent = getpwnam(user);
if (ent != NULL) {
*user_id = ent->pw_uid;
return(0);
|