Mercurial > dropbear
comparison loginrec.c @ 511:582cb38e4eb5 insecure-nocrypto
propagate from branch 'au.asn.ucc.matt.dropbear' (head cdcc3c729e29544e8b98a408e2dc60e4483dfd2a)
to branch 'au.asn.ucc.matt.dropbear.insecure-nocrypto' (head 0ca38a1cf349f7426ac9de34ebe4c3e3735effab)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 06 Nov 2008 13:16:55 +0000 |
parents | ada77f43c79a |
children | e0084f136cb8 |
comparison
equal
deleted
inserted
replaced
361:461c4b1fb35f | 511:582cb38e4eb5 |
---|---|
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 } |