diff loginrec.c @ 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 6ba95762ec4e
children e0084f136cb8
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));