}
#endif
\f
+#ifdef GETLOADAVG_PRIVILEGED
+
#ifndef HAVE_UNISTD_H
extern int getuid (), getgid (), geteuid (), getegid ();
#ifdef USG
current_access = make;
}
+#endif /* GETLOADAVG_PRIVILEGED */
+
/* Give the process appropriate permissions for access to
user data (i.e., to stat files, or to spawn a child process). */
void
user_access ()
{
+#ifdef GETLOADAVG_PRIVILEGED
+
if (!access_inited)
init_access ();
#endif
current_access = user;
+
+#endif /* GETLOADAVG_PRIVILEGED */
}
/* Give the process appropriate permissions for access to
void
make_access ()
{
+#ifdef GETLOADAVG_PRIVILEGED
+
if (!access_inited)
init_access ();
#endif
current_access = make;
+
+#endif /* GETLOADAVG_PRIVILEGED */
}
/* Give the process appropriate permissions for a child process.
void
child_access ()
{
+#ifdef GETLOADAVG_PRIVILEGED
+
/* Set both the real and effective UID and GID to the user's.
They cannot be changed back to make's. */
if (setregid (user_gid, user_gid) < 0)
pfatal_with_name ("child_access: setregid");
#endif
+
+#endif /* GETLOADAVG_PRIVILEGED */
}
\f
#ifdef NEED_GET_PATH_MAX