Mercurial > dropbear
comparison loginrec.c @ 136:fb7147e2fb04
- Fixed a couple of compile warnings
- First public monotone import
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 27 Nov 2004 19:58:34 +0000 |
parents | 5c6f9d27ea1c |
children | 82fcf3185616 |
comparison
equal
deleted
inserted
replaced
135:d663445c1533 | 136:fb7147e2fb04 |
---|---|
1399 static int | 1399 static int |
1400 lastlog_filetype(char *filename) | 1400 lastlog_filetype(char *filename) |
1401 { | 1401 { |
1402 struct stat st; | 1402 struct stat st; |
1403 | 1403 |
1404 if (stat(LASTLOG_FILE, &st) != 0) { | 1404 if (stat(filename, &st) != 0) { |
1405 dropbear_log(LOG_WARNING, "lastlog_perform_login: Couldn't stat %s: %s", LASTLOG_FILE, | 1405 dropbear_log(LOG_WARNING, "lastlog_perform_login: Couldn't stat %s: %s", filename, |
1406 strerror(errno)); | 1406 strerror(errno)); |
1407 return 0; | 1407 return 0; |
1408 } | 1408 } |
1409 if (S_ISDIR(st.st_mode)) | 1409 if (S_ISDIR(st.st_mode)) |
1410 return LL_DIR; | 1410 return LL_DIR; |