conf/84221: Wrong permissions on /etc/opiekeys

Eygene A. Ryabinkin freebsd at rea.mbslab.kiae.ru
Fri Jul 29 13:22:43 GMT 2005


 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


More information about the freebsd-bugs mailing list