summaryrefslogtreecommitdiffstats
path: root/usr.bin/at/at.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-04-27 19:27:42 +0000
committerache <ache@FreeBSD.org>1995-04-27 19:27:42 +0000
commit7fa24f3661a9755d07d17cb80ef52f053205886c (patch)
treef9ff07fc15ef54e54bf7dd4436343d7a6cd75849 /usr.bin/at/at.c
parent775ad02c2d1935bed5532a3743d4753fe65187fe (diff)
downloadFreeBSD-src-7fa24f3661a9755d07d17cb80ef52f053205886c.zip
FreeBSD-src-7fa24f3661a9755d07d17cb80ef52f053205886c.tar.gz
Remove setre* hacks, we have working thing now
Diffstat (limited to 'usr.bin/at/at.c')
-rw-r--r--usr.bin/at/at.c8
1 files changed, 7 insertions, 1 deletions
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.
*/
OpenPOWER on IntegriCloud