DirectorySave: save the mtime only if it is known

This commit is contained in:
Max Kellermann 2014-02-24 21:17:06 +01:00
parent 3f4c283203
commit 55cd5a9a78

View File

@ -43,6 +43,7 @@ void
directory_save(FILE *fp, const Directory &directory)
{
if (!directory.IsRoot()) {
if (directory.mtime != 0)
fprintf(fp, DIRECTORY_MTIME "%lu\n",
(unsigned long)directory.mtime);