Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Don't create the lastlogx file with 0 mode.



details:   https://anonhg.NetBSD.org/src/rev/5d70e59cafee
branches:  trunk
changeset: 571157:5d70e59cafee
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 11 22:14:20 2004 +0000

description:
Don't create the lastlogx file with 0 mode.

diffstat:

 lib/libc/gen/utmpx.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 28da75a31384 -r 5d70e59cafee lib/libc/gen/utmpx.c
--- a/lib/libc/gen/utmpx.c      Thu Nov 11 22:10:54 2004 +0000
+++ b/lib/libc/gen/utmpx.c      Thu Nov 11 22:14:20 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: utmpx.c,v 1.21 2003/09/06 16:42:10 wiz Exp $    */
+/*     $NetBSD: utmpx.c,v 1.22 2004/11/11 22:14:20 christos Exp $       */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 #include <sys/cdefs.h>
 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: utmpx.c,v 1.21 2003/09/06 16:42:10 wiz Exp $");
+__RCSID("$NetBSD: utmpx.c,v 1.22 2004/11/11 22:14:20 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -475,7 +475,7 @@
        _DIAGASSERT(fname != NULL);
        _DIAGASSERT(ll != NULL);
 
-       db = dbopen(fname, O_RDWR|O_CREAT|O_EXLOCK, 0, DB_HASH, NULL);
+       db = dbopen(fname, O_RDWR|O_CREAT|O_EXLOCK, 0644, DB_HASH, NULL);
 
        if (db == NULL)
                return -1;



Home | Main Index | Thread Index | Old Index