summaryrefslogtreecommitdiff
path: root/usr.bin/at/Makefile
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-05-11 18:41:21 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-05-11 18:41:21 +0000
commit403f2d423a636d5975a0cfad10f57ad27633a06d (patch)
tree4b379cd0eae98482048b3972af17fd56a9749e21 /usr.bin/at/Makefile
parent5102fea158f4a4887eada3c42c62d6af4f2a0151 (diff)
at(1) is no longer setuid root, it is setgid crontab.
This means that /var/at/at.{allow,deny} must be readable by group crontab, /var/at/jobs is mode 01770, and /var/at/.SEQ is mode 0660.
Diffstat (limited to 'usr.bin/at/Makefile')
-rw-r--r--usr.bin/at/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/at/Makefile b/usr.bin/at/Makefile
index abe30f921e8..406cb0f0b3b 100644
--- a/usr.bin/at/Makefile
+++ b/usr.bin/at/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 1997/09/21 11:48:22 deraadt Exp $
+# $OpenBSD: Makefile,v 1.5 2002/05/11 18:41:20 millert Exp $
PROG= at
SRCS= at.c panic.c parsetime.c perm.c
@@ -9,7 +9,12 @@ MLINKS= at.1 batch.1 \
at.1 atq.1 \
at.1 atrm.1
-BINOWN= root
-BINMODE= 4555
+BINGRP= crontab
+BINMODE= 2555
+
+afterinstall:
+ test -f ${DESTDIR}/var/at/.SEQ || touch ${DESTDIR}/var/at/.SEQ
+ chown ${BINOWN}:${BINGRP} ${DESTDIR}/var/at/.SEQ; \
+ chmod 0660 ${DESTDIR}/var/at/.SEQ; \
.include <bsd.prog.mk>