summaryrefslogtreecommitdiff
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
parentc8a49d743ae2ab739ca4266e7013bc9c3079aaee (diff)
- (djm) Bug #539: Specify creation mode with O_CREAT for lastlog. Report
from matth@eecs.berkeley.edu
-rw-r--r--ChangeLog6
-rw-r--r--loginrec.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 2c241812a..aa7bcaeba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
120030409
2 - (djm) Bug #539: Specify creation mode with O_CREAT for lastlog. Report
3 from matth@eecs.berkeley.edu
4
120030402 520030402
2 - (bal) if IP_TOS is not found or broken don't try to compile in 6 - (bal) if IP_TOS is not found or broken don't try to compile in
3 packet_set_tos() function call. bug #527 7 packet_set_tos() function call. bug #527
@@ -1299,4 +1303,4 @@
1299 save auth method before monitor_reset_key_state(); bugzilla bug #284; 1303 save auth method before monitor_reset_key_state(); bugzilla bug #284;
1300 ok provos@ 1304 ok provos@
1301 1305
1302$Id: ChangeLog,v 1.2649 2003/04/02 15:18:22 mouring Exp $ 1306$Id: ChangeLog,v 1.2650 2003/04/09 09:40:33 djm Exp $
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 */