Commit 8edc0c2a authored by Matt Johnston's avatar Matt Johnston
Browse files

Give a umask argument to open() in loginrec

--HG--
extra : convert_revision : e8ae11ccf89b916d47ff09fce1d7b2ccb966607e
parent ebc3a3ac
......@@ -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));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment