summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2008-11-05 13:14:38 +0000
committerMatt Johnston <matt@ucc.asn.au>2008-11-05 13:14:38 +0000
commit8edc0c2afc3da182f46cdd0cae29e03089a18eb6 (patch)
treeb0fe8b9b78c51dc53af52a6ba160585f1be30738
parentebc3a3ac74024b9ee9251f90507688bef71bdb19 (diff)
Give a umask argument to open() in loginrec
--HG-- extra : convert_revision : e8ae11ccf89b916d47ff09fce1d7b2ccb966607e
-rw-r--r--loginrec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loginrec.c b/loginrec.c
index f084566..14b8090 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -1334,7 +1334,7 @@ lastlog_openseek(struct logininfo *li, int *fd, int filemode)
return 0;
}
- *fd = open(lastlog_file, filemode);
+ *fd = open(lastlog_file, filemode, 0600);
if ( *fd < 0) {
dropbear_log(LOG_INFO, "lastlog_openseek: Couldn't open %s: %s",
lastlog_file, strerror(errno));