Change mode of the /etc/printcap link to please security(8).
This commit is contained in:
parent
3861749b0d
commit
069ad9693e
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.227 2017/10/14 10:22:03 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.228 2017/10/31 15:55:15 ajacoutot Exp $
|
||||
|
||||
COMMENT-main= Common Unix Printing System
|
||||
COMMENT-libs= CUPS libraries and headers
|
||||
@ -11,6 +11,8 @@ GH_TAGNAME= v${VERSION}
|
||||
PKGNAME-main= cups-${VERSION}
|
||||
PKGNAME-libs= cups-libs-${VERSION}
|
||||
|
||||
REVISION-main= 0
|
||||
|
||||
CATEGORIES= print sysutils
|
||||
|
||||
# config-scripts/cups-sharedlibs.m4
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: cupsd.rc,v 1.25 2017/08/01 12:18:35 ajacoutot Exp $
|
||||
# $OpenBSD: cupsd.rc,v 1.26 2017/10/31 15:55:15 ajacoutot Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/cupsd"
|
||||
|
||||
@ -22,7 +22,11 @@ rc_pre() {
|
||||
|
||||
# no existing printcap means we're not running lpd(8) so link cups'
|
||||
# printcap so base lp commands can find and use cups printers
|
||||
[ -e /etc/printcap ] || ln -s ${SYSCONFDIR}/cups/printcap /etc/printcap
|
||||
if [ ! -e /etc/printcap ]; then
|
||||
ln -s ${SYSCONFDIR}/cups/printcap /etc/printcap
|
||||
# please check_mtree() in security(8); /etc/mtree/special
|
||||
chmod -h 0644 /etc/printcap
|
||||
fi
|
||||
}
|
||||
|
||||
rc_post() {
|
||||
|
Loading…
Reference in New Issue
Block a user