Give a umask argument to open() in loginrec

--HG--
extra : convert_revision : e8ae11ccf89b916d47ff09fce1d7b2ccb966607e
This commit is contained in:
Matt Johnston 2008-11-05 13:14:38 +00:00
parent ebc3a3ac74
commit 8edc0c2afc

View File

@ -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));