1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

cron(8): rip out do_univ

This was an old Dynix hack, the function is a NOP on FreeBSD. We have no
need to retain this; Dynix was discontinued long ago.
This commit is contained in:
Kyle Evans 2020-02-10 02:44:29 +00:00
parent 9b36723388
commit 1709a13c7c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357715

View File

@ -38,8 +38,7 @@ static const char rcsid[] =
#endif
static void child_process(entry *, user *),
do_univ(user *);
static void child_process(entry *, user *);
static WAIT_T wait_on_child(PID_T, const char *);
@ -278,12 +277,6 @@ child_process(e, u)
close(stdin_pipe[READ_PIPE]);
close(stdout_pipe[WRITE_PIPE]);
/* set our login universe. Do this in the grandchild
* so that the child can invoke /usr/lib/sendmail
* without surprises.
*/
do_univ(u);
environ = NULL;
# if defined(LOGIN_CAP)
@ -639,41 +632,3 @@ wait_on_child(PID_T childpid, const char *name) {
return waiter;
}
static void
do_univ(u)
user *u;
{
#if defined(sequent)
/* Dynix (Sequent) hack to put the user associated with
* the passed user structure into the ATT universe if
* necessary. We have to dig the gecos info out of
* the user's password entry to see if the magic
* "universe(att)" string is present.
*/
struct passwd *p;
char *s;
int i;
p = getpwuid(u->uid);
(void) endpwent();
if (p == NULL)
return;
s = p->pw_gecos;
for (i = 0; i < 4; i++)
{
if ((s = strchr(s, ',')) == NULL)
return;
s++;
}
if (strcmp(s, "universe(att)"))
return;
(void) universe(U_ATT);
#endif
}