summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-04-09 19:40:33 +1000
committerDamien Miller <djm@mindrot.org>2003-04-09 19:40:33 +1000
commitd186d7441048f08ffb4f7282da6f8ed75a169bfa (patch)
tree3b21a86e41f8e2cc44e5d8c48ea4a4b23270354e /loginrec.c
parentc8a49d743ae2ab739ca4266e7013bc9c3079aaee (diff)
- (djm) Bug #539: Specify creation mode with O_CREAT for lastlog. Report
from matth@eecs.berkeley.edu
Diffstat (limited to 'loginrec.c')
-rw-r--r--loginrec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loginrec.c b/loginrec.c
index 6697ca7b0..db2528a79 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -163,7 +163,7 @@
163#include "log.h" 163#include "log.h"
164#include "atomicio.h" 164#include "atomicio.h"
165 165
166RCSID("$Id: loginrec.c,v 1.47 2003/03/10 00:23:07 djm Exp $"); 166RCSID("$Id: loginrec.c,v 1.48 2003/04/09 09:40:34 djm Exp $");
167 167
168#ifdef HAVE_UTIL_H 168#ifdef HAVE_UTIL_H
169# include <util.h> 169# include <util.h>
@@ -1483,7 +1483,7 @@ lastlog_perform_login(struct logininfo *li)
1483 /* create our struct lastlog */ 1483 /* create our struct lastlog */
1484 lastlog_construct(li, &last); 1484 lastlog_construct(li, &last);
1485 1485
1486 if (!lastlog_openseek(li, &fd, O_RDWR|O_CREAT)) 1486 if (!lastlog_openseek(li, &fd, O_RDWR|O_CREAT, 0600))
1487 return(0); 1487 return(0);
1488 1488
1489 /* write the entry */ 1489 /* write the entry */