svn commit: samba r7818 - in trunk/source/libsmb: .
derrell at samba.org
derrell at samba.org
Tue Jun 21 20:39:52 GMT 2005
Author: derrell
Date: 2005-06-21 20:39:51 +0000 (Tue, 21 Jun 2005)
New Revision: 7818
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7818
Log:
merge r7817 from SAMBA_3_0
Modified:
trunk/source/libsmb/libsmbclient.c
Changeset:
Modified: trunk/source/libsmb/libsmbclient.c
===================================================================
--- trunk/source/libsmb/libsmbclient.c 2005-06-21 20:34:24 UTC (rev 7817)
+++ trunk/source/libsmb/libsmbclient.c 2005-06-21 20:39:51 UTC (rev 7818)
@@ -3017,14 +3017,26 @@
m_time = tbuf[1].tv_sec;
}
+ if (DEBUGLVL(4))
{
+ char *p;
char atimebuf[32];
char mtimebuf[32];
- DEBUG(4, ("smbc_utimes(%s, atime = %s mtime = %s)\n",
- fname,
- ctime_r(&a_time, atimebuf),
- ctime_r(&m_time, mtimebuf)));
+ strncpy(atimebuf, ctime(&a_time), sizeof(atimebuf));
+ atimebuf[sizeof(atimebuf) - 1] = '\0';
+ if ((p = strchr(atimebuf, '\n')) != NULL) {
+ *p = '\0';
+ }
+
+ strncpy(mtimebuf, ctime(&m_time), sizeof(mtimebuf));
+ mtimebuf[sizeof(mtimebuf) - 1] = '\0';
+ if ((p = strchr(mtimebuf, '\n')) != NULL) {
+ *p = '\0';
+ }
+
+ dbgtext("smbc_utimes(%s, atime = %s mtime = %s)\n",
+ fname, atimebuf, mtimebuf);
}
if (smbc_parse_path(context, fname,
More information about the samba-cvs
mailing list