From f16db6cd8054bb4722ec6e80fe529b5f2390880f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Jan 2014 23:01:24 +0100 Subject: [PATCH] DatabasePrint: don't print zero mtime Zero means "unknown". --- src/DatabasePrint.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DatabasePrint.cxx b/src/DatabasePrint.cxx index 7b5975275..ef7ba825b 100644 --- a/src/DatabasePrint.cxx +++ b/src/DatabasePrint.cxx @@ -46,7 +46,9 @@ PrintDirectoryFull(Client &client, const Directory &directory) { if (!directory.IsRoot()) { client_printf(client, "directory: %s\n", directory.GetPath()); - time_print(client, "Last-Modified", directory.mtime); + + if (directory.mtime > 0) + time_print(client, "Last-Modified", directory.mtime); } return true;