| 1714 |
1714 |
| 1715 if (index_fd != -1) { |
1715 if (index_fd != -1) { |
| 1716 if (st.st_mtime < log_last_modified) |
1716 if (st.st_mtime < log_last_modified) |
| 1717 { |
1717 { |
| 1718 purple_debug_warning("log", "Index \"%s\" exists, but is older than the log.\n", pathstr); |
1718 purple_debug_warning("log", "Index \"%s\" exists, but is older than the log.\n", pathstr); |
| |
1719 close(index_fd); |
| 1719 } |
1720 } |
| 1720 else |
1721 else |
| 1721 { |
1722 { |
| 1722 /* The index file exists and is at least as new as the log, so open it. */ |
1723 /* The index file exists and is at least as new as the log, so open it. */ |
| 1723 if (!(index = fdopen(index_fd, "rb"))) { |
1724 if (!(index = fdopen(index_fd, "rb"))) { |