Commit 55cd5a9a authored by Max Kellermann's avatar Max Kellermann

DirectorySave: save the mtime only if it is known

parent 3f4c2832
...@@ -43,6 +43,7 @@ void ...@@ -43,6 +43,7 @@ void
directory_save(FILE *fp, const Directory &directory) directory_save(FILE *fp, const Directory &directory)
{ {
if (!directory.IsRoot()) { if (!directory.IsRoot()) {
if (directory.mtime != 0)
fprintf(fp, DIRECTORY_MTIME "%lu\n", fprintf(fp, DIRECTORY_MTIME "%lu\n",
(unsigned long)directory.mtime); (unsigned long)directory.mtime);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment