Mercurial > dropbear
changeset 507:ada77f43c79a
Give a umask argument to open() in loginrec
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 05 Nov 2008 13:14:38 +0000 |
parents | 910c2da71235 |
children | d4bbc0039008 |
files | loginrec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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));