# HG changeset patch # User Matt Johnston # Date 1225890878 0 # Node ID ada77f43c79ace50c6492460d421fb5314bbf19d # Parent 910c2da7123528f0080f08cd2f6cfc102e820d60 Give a umask argument to open() in loginrec diff -r 910c2da71235 -r ada77f43c79a loginrec.c --- a/loginrec.c Sun Nov 02 13:34:02 2008 +0000 +++ b/loginrec.c Wed Nov 05 13:14:38 2008 +0000 @@ -1334,7 +1334,7 @@ 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));