We can now just use the caching sudo_*{pw,gr}* functions in pwutil.c
Add comment about wanting to call sudo_endpwent/sudo_endgrent in cleanup()
return(FALSE);
}
-char *
-sudo_getepw(pw)
- const struct passwd *pw;
-{
- return (pw->pw_passwd);
-}
-
-/* STUB */
-struct passwd *
-sudo_getpwuid(uid)
- uid_t uid;
-{
- return(getpwuid(uid));
-}
-
/* STUB */
-struct passwd *
-sudo_getpwnam(name)
- const char *name;
+void
+sudo_setspent()
{
- return(getpwnam(name));
+ return;
}
/* STUB */
-struct group *
-sudo_getgrgid(gid)
- gid_t gid;
+void
+sudo_endspent()
{
- return(getgrgid(gid));
+ return;
}
-/* STUB */
-struct group *
-sudo_getgrnam(name)
- const char *name;
+char *
+sudo_getepw(pw)
+ const struct passwd *pw;
{
- return(getgrnam(name));
+ return (pw->pw_passwd);
}
/*
if (sp->tpath != NULL)
(void) unlink(sp->tpath);
}
+ /*
+ * XXX - would like to call sudo_endpwent/sudo_endgrent but they
+ * are not signal-safe.
+ sudo_endpwent();
+ sudo_endgrent();
+ */
}
/*