svn commit: samba r5093 - in branches/SAMBA_4_0/source/lib: .

abartlet at samba.org abartlet at samba.org
Sat Jan 29 04:11:06 GMT 2005


Author: abartlet
Date: 2005-01-29 04:11:04 +0000 (Sat, 29 Jan 2005)
New Revision: 5093

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5093

Log:
Make debugs less confusing when a 0 NTTIME is printed.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/lib/time.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/time.c
===================================================================
--- branches/SAMBA_4_0/source/lib/time.c	2005-01-29 04:04:38 UTC (rev 5092)
+++ branches/SAMBA_4_0/source/lib/time.c	2005-01-29 04:11:04 UTC (rev 5093)
@@ -346,7 +346,11 @@
 */
 const char *nt_time_string(TALLOC_CTX *mem_ctx, NTTIME nt)
 {
-	time_t t = nt_time_to_unix(nt);
+	time_t t;
+	if (nt == 0) {
+		return "NTTIME(0)";
+	}
+	t = nt_time_to_unix(nt);
 	return timestring(mem_ctx, t);
 }
 



More information about the samba-cvs mailing list