ports/net/samba3/files/patch-utils_net_time.c
Alexey Dokuchaev 8f5d0f33d7 Update to version 3.0.12.
Currently, ADS support is off for the package builds, as it creates
dependency problems with Kerberos5.  Also, an experimental support
for extended attributes is included.

PR:		ports/79037
Submitted by:	maintainer
2005-03-20 09:29:05 +00:00

19 lines
499 B
C

--- utils/net_time.c.orig Fri Feb 25 18:59:42 2005
+++ utils/net_time.c Sun Mar 20 01:41:20 2005
@@ -76,9 +76,16 @@
tm = localtime(&t);
+#if defined(FREEBSD)
+ fstr_sprintf(s, "%02d%02d%02d%02d%02d.%02d",
+ tm->tm_year+1900,tm->tm_mon+1,tm->tm_mday,
+ tm->tm_hour,tm->tm_min,tm->tm_sec);
+#else
fstr_sprintf(s, "%02d%02d%02d%02d%04d.%02d",
tm->tm_mon+1, tm->tm_mday, tm->tm_hour,
tm->tm_min, tm->tm_year + 1900, tm->tm_sec);
+#endif /* defined(FREEBSD) */
+
return s;
}