From 8edc0c2afc3da182f46cdd0cae29e03089a18eb6 Mon Sep 17 00:00:00 2001 From: Matt Johnston <matt@ucc.asn.au> Date: Wed, 5 Nov 2008 13:14:38 +0000 Subject: [PATCH] Give a umask argument to open() in loginrec --HG-- extra : convert_revision : e8ae11ccf89b916d47ff09fce1d7b2ccb966607e --- loginrec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loginrec.c b/loginrec.c index f084566e..14b8090f 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)); -- GitLab