mirror of
https://github.com/clearml/dropbear
synced 2025-06-25 17:47:02 +00:00
Give a umask argument to open() in loginrec
--HG-- extra : convert_revision : e8ae11ccf89b916d47ff09fce1d7b2ccb966607e
This commit is contained in:
parent
ebc3a3ac74
commit
8edc0c2afc
@ -1334,7 +1334,7 @@ lastlog_openseek(struct logininfo *li, int *fd, int filemode)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
*fd = open(lastlog_file, filemode);
|
*fd = open(lastlog_file, filemode, 0600);
|
||||||
if ( *fd < 0) {
|
if ( *fd < 0) {
|
||||||
dropbear_log(LOG_INFO, "lastlog_openseek: Couldn't open %s: %s",
|
dropbear_log(LOG_INFO, "lastlog_openseek: Couldn't open %s: %s",
|
||||||
lastlog_file, strerror(errno));
|
lastlog_file, strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user