Date: Fri, 29 Jul 2005 13:30:18 GMT From: "Eygene A. Ryabinkin" <freebsd@rea.mbslab.kiae.ru> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/84221: Wrong permissions on /etc/opiekeys Message-ID: <200507291330.j6TDUIEY001849@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/84221; it has been noted by GNATS.
From: "Eygene A. Ryabinkin" <freebsd@rea.mbslab.kiae.ru>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:
Subject: Re: conf/84221: Wrong permissions on /etc/opiekeys
Date: Fri, 29 Jul 2005 17:22:40 +0400
And one more fix for /usr/src/lib/libopie/Makefile to help people that are
upgrading via make/buildworld to have right permissions on their keyfile.
--- Makefile.orig Fri Jul 29 17:10:48 2005
+++ Makefile Fri Jul 29 17:16:00 2005
@@ -7,6 +7,7 @@
SHLIB_MAJOR= 3
KEYFILE?= \"/etc/opiekeys\"
+REALKEYFILE= ${KEYFILE:S/\"//g}
.PATH: ${DIST_DIR} ${OPIE_DIST}/libmissing
@@ -32,5 +33,8 @@
MAN= ${OPIE_DIST}/opie.4 ${OPIE_DIST}/opiekeys.5 ${OPIE_DIST}/opieaccess.5
MLINKS= opie.4 skey.4
+
+beforeinstall:
+ test -f $(REALKEYFILE) && chmod 0600 $(REALKEYFILE) || true
.include <bsd.lib.mk>
--
rea
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507291330.j6TDUIEY001849>
