Please security(8): cat the content of the CUPS printcap file into

/etc/printcap(5) instead of creating a link.
This commit is contained in:
ajacoutot 2012-05-26 06:26:04 +00:00
parent 6b2f4f84a5
commit 0c6d65403d
2 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.128 2012/05/18 16:31:22 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.129 2012/05/26 06:26:04 ajacoutot Exp $
COMMENT= Common Unix Printing System
VERSION= 1.5.3
DISTNAME= cups-${VERSION}-source
PKGNAME= cups-${VERSION}
REVISION= 0
REVISION= 1
CATEGORIES= print sysutils

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: cupsd.rc,v 1.11 2012/02/16 22:12:08 ajacoutot Exp $
# $OpenBSD: cupsd.rc,v 1.12 2012/05/26 06:26:04 ajacoutot Exp $
daemon="${TRUEPREFIX}/sbin/cupsd"
@ -31,7 +31,7 @@ rc_pre() {
fi
if [ -e /etc/printcap -a ! -e /etc/printcap.pre-cups ]; then
mv /etc/printcap /etc/printcap.pre-cups
ln -s ${SYSCONFDIR}/cups/printcap /etc/printcap
cat /etc/cups/printcap > /etc/printcap
fi
for i in lpq lpr lprm; do
rm -f /usr/bin/$i