diff options
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/DirectorySave.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/db/DirectorySave.cxx b/src/db/DirectorySave.cxx index 499f84734..614473d34 100644 --- a/src/db/DirectorySave.cxx +++ b/src/db/DirectorySave.cxx @@ -43,8 +43,9 @@ void directory_save(FILE *fp, const Directory &directory) { if (!directory.IsRoot()) { - fprintf(fp, DIRECTORY_MTIME "%lu\n", - (unsigned long)directory.mtime); + if (directory.mtime != 0) + fprintf(fp, DIRECTORY_MTIME "%lu\n", + (unsigned long)directory.mtime); fprintf(fp, "%s%s\n", DIRECTORY_BEGIN, directory.GetPath()); } |