summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pw_user.c
diff options
context:
space:
mode:
authordavidn <davidn@FreeBSD.org>1996-12-23 02:27:29 +0000
committerdavidn <davidn@FreeBSD.org>1996-12-23 02:27:29 +0000
commit678cf2c17349563627f35da5ce8301a39b4388f9 (patch)
treed6a4feb43101bd4ad68b74b75aa284c0e6b59b3f /usr.sbin/pw/pw_user.c
parent89e44cd0e4513d091fa829d7a11ac228b1d79f88 (diff)
downloadFreeBSD-src-678cf2c17349563627f35da5ce8301a39b4388f9.zip
FreeBSD-src-678cf2c17349563627f35da5ce8301a39b4388f9.tar.gz
Correct file modes on updated /etc/skeykeys.
Diffstat (limited to 'usr.sbin/pw/pw_user.c')
-rw-r--r--usr.sbin/pw/pw_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c
index 81d4d9f..0b2f763 100644
--- a/usr.sbin/pw/pw_user.c
+++ b/usr.sbin/pw/pw_user.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: pw_user.c,v 1.7 1996/12/20 10:45:39 davidn Exp $
+ * $Id: pw_user.c,v 1.8 1996/12/21 15:35:43 davidn Exp $
*/
#include <unistd.h>
@@ -1003,7 +1003,7 @@ rmskey(char const * name)
FILE *infp = fopen(etcskey, "r");
if (infp != NULL) {
- int fd = open(newskey, O_RDWR|O_CREAT|O_TRUNC, 0644);
+ int fd = open(newskey, O_RDWR|O_CREAT|O_TRUNC, S_IWUSR|S_IRUSR);
if (fd != -1) {
FILE * outfp = fdopen(fd, "w");
OpenPOWER on IntegriCloud