comparison loginrec.c @ 546:568638be7203 agent-client

propagate from branch 'au.asn.ucc.matt.dropbear' (head 899a8851a5edf840b2f7925bcc26ffe99dcac54d) to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 6bbab8364de17bd9ecb1dee5ffb796e48c0380d2)
author Matt Johnston <matt@ucc.asn.au>
date Wed, 01 Jul 2009 04:16:32 +0000
parents ada77f43c79a
children e0084f136cb8
comparison
equal deleted inserted replaced
500:d588e3ea557a 546:568638be7203
1332 dropbear_log(LOG_WARNING, "lastlog_openseek: %.100s is not a file or directory!", 1332 dropbear_log(LOG_WARNING, "lastlog_openseek: %.100s is not a file or directory!",
1333 LASTLOG_FILE); 1333 LASTLOG_FILE);
1334 return 0; 1334 return 0;
1335 } 1335 }
1336 1336
1337 *fd = open(lastlog_file, filemode); 1337 *fd = open(lastlog_file, filemode, 0600);
1338 if ( *fd < 0) { 1338 if ( *fd < 0) {
1339 dropbear_log(LOG_INFO, "lastlog_openseek: Couldn't open %s: %s", 1339 dropbear_log(LOG_INFO, "lastlog_openseek: Couldn't open %s: %s",
1340 lastlog_file, strerror(errno)); 1340 lastlog_file, strerror(errno));
1341 return 0; 1341 return 0;
1342 } 1342 }