From 9626487a14c8dfd23f8743cb85a2bc12cf454887 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 21 Dec 2010 17:00:33 +0100 Subject: s4-smbtorture: fix expected driver date REG_SZ string. This resolves the "WARNING!: ../torture/rpc/spoolss.c:4688: str was 01/01/1601, expected 01/01/1970: "DriverDate" - driver_date mismatch" warnings. Guenther --- source4/torture/rpc/spoolss.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/torture') diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 6608aedf54..401dc57fab 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -4592,6 +4592,11 @@ static const char *driver_winreg_date(TALLOC_CTX *mem_ctx, NTTIME nt) { time_t t; struct tm *tm; + + if (nt == 0) { + return talloc_strdup(mem_ctx, "01/01/1601"); + } + t = nt_time_to_unix(nt); tm = localtime(&t); -- cgit