diff options
author | Matt Johnston <matt@ucc.asn.au> | 2008-11-05 13:14:38 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2008-11-05 13:14:38 +0000 |
commit | 8edc0c2afc3da182f46cdd0cae29e03089a18eb6 (patch) | |
tree | b0fe8b9b78c51dc53af52a6ba160585f1be30738 | |
parent | ebc3a3ac74024b9ee9251f90507688bef71bdb19 (diff) |
Give a umask argument to open() in loginrec
--HG--
extra : convert_revision : e8ae11ccf89b916d47ff09fce1d7b2ccb966607e
-rw-r--r-- | loginrec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |