summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--loginrec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loginrec.c b/loginrec.c
index 38e1d8e82..224a7474e 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.49 2003/04/09 10:59:49 djm Exp $"); 166RCSID("$Id: loginrec.c,v 1.50 2003/04/09 11:12:52 djm Exp $");
167 167
168#ifdef HAVE_UTIL_H 168#ifdef HAVE_UTIL_H
169# include <util.h> 169# include <util.h>
@@ -1453,7 +1453,7 @@ lastlog_openseek(struct logininfo *li, int *fd, int filemode)
1453 return 0; 1453 return 0;
1454 } 1454 }
1455 1455
1456 *fd = open(lastlog_file, filemode); 1456 *fd = open(lastlog_file, filemode, 0600);
1457 if ( *fd < 0) { 1457 if ( *fd < 0) {
1458 debug("lastlog_openseek: Couldn't open %s: %s", 1458 debug("lastlog_openseek: Couldn't open %s: %s",
1459 lastlog_file, strerror(errno)); 1459 lastlog_file, strerror(errno));
@@ -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, 0600)) 1486 if (!lastlog_openseek(li, &fd, O_RDWR|O_CREAT))
1487 return(0); 1487 return(0);
1488 1488
1489 /* write the entry */ 1489 /* write the entry */