conf/84221: Wrong permissions on /etc/opiekeys

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


The following reply was made to PR conf/84221; it has been noted by GNATS.

From: "Eygene A. Ryabinkin" <freebsd at rea.mbslab.kiae.ru>
To: FreeBSD-gnats-submit at FreeBSD.org, freebsd-bugs at 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


More information about the freebsd-bugs mailing list