diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | loginrec.c | 4 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20030409 | ||
2 | - (djm) Bug #539: Specify creation mode with O_CREAT for lastlog. Report | ||
3 | from matth@eecs.berkeley.edu | ||
4 | |||
1 | 20030402 | 5 | 20030402 |
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 | ||
166 | RCSID("$Id: loginrec.c,v 1.47 2003/03/10 00:23:07 djm Exp $"); | 166 | RCSID("$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 */ |