diff options
author | Günther Deschner <gd@samba.org> | 2010-12-21 17:00:33 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-12-22 13:33:17 +0100 |
commit | 9626487a14c8dfd23f8743cb85a2bc12cf454887 (patch) | |
tree | d8f4c2469d7017e6cf29ee6e6e573adc23cb4cd5 /source4 | |
parent | 3931d4aa65aa6edf75c6593e43d74441168ed299 (diff) | |
download | samba-9626487a14c8dfd23f8743cb85a2bc12cf454887.tar.gz samba-9626487a14c8dfd23f8743cb85a2bc12cf454887.tar.bz2 samba-9626487a14c8dfd23f8743cb85a2bc12cf454887.zip |
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
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/spoolss.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |