From 7fa24f3661a9755d07d17cb80ef52f053205886c Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 27 Apr 1995 19:27:42 +0000 Subject: Remove setre* hacks, we have working thing now --- usr.bin/at/at.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'usr.bin/at/at.c') diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c index 1807ba4..70fc6c9 100644 --- a/usr.bin/at/at.c +++ b/usr.bin/at/at.c @@ -80,7 +80,7 @@ /* File scope variables */ -static char rcsid[] = "$Id: at.c,v 1.2 1995/04/12 02:42:28 ache Exp $"; +static char rcsid[] = "$Id: at.c,v 1.3 1995/04/15 22:08:08 ache Exp $"; char *no_export[] = { "TERM", "TERMCAP", "DISPLAY", "_" @@ -250,6 +250,12 @@ writefile(time_t runtimer, char queue) PRIV_END + /* We no longer need suid root; now we just need to be able to write + * to the directory, if necessary. + */ + + REDUCE_PRIV(DAEMON_UID, DAEMON_GID) + /* We've successfully created the file; let's set the flag so it * gets removed in case of an interrupt or error. */ -- cgit v1.1