DirectorySave: save the mtime only if it is known
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user