svn commit: samba r17853 - in branches/SAMBA_3_0/source/torture: .

vlendec at samba.org vlendec at samba.org
Sun Aug 27 16:50:11 GMT 2006


Author: vlendec
Date: 2006-08-27 16:50:10 +0000 (Sun, 27 Aug 2006)
New Revision: 17853

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

Log:
Fix an uninitialized variable (m_time2). Jeremy, please check.

Thanks,

Volker
Modified:
   branches/SAMBA_3_0/source/torture/torture.c


Changeset:
Modified: branches/SAMBA_3_0/source/torture/torture.c
===================================================================
--- branches/SAMBA_3_0/source/torture/torture.c	2006-08-27 16:24:03 UTC (rev 17852)
+++ branches/SAMBA_3_0/source/torture/torture.c	2006-08-27 16:50:10 UTC (rev 17853)
@@ -2467,7 +2467,7 @@
 	struct cli_state *cli;
 	int fnum;
 	SMB_OFF_T size;
-	time_t c_time, a_time, m_time, m_time2;
+	time_t c_time, a_time, m_time;
 	struct timespec c_time_ts, a_time_ts, m_time_ts, w_time_ts, m_time2_ts;
 	const char *fname = "\\trans2.tst";
 	const char *dname = "\\trans2";
@@ -2577,7 +2577,8 @@
 		printf("ERROR: qpathinfo2 failed (%s)\n", cli_errstr(cli));
 		correct = False;
 	} else {
-		if (m_time2 == m_time) {
+		if (memcmp(&m_time_ts, &m_time2_ts, sizeof(struct timespec))
+		    == 0) {
 			printf("This system does not update directory modification times\n");
 			correct = False;
 		}



More information about the samba-cvs mailing list