summaryrefslogtreecommitdiff
path: root/net/samba44/files/patch-source3__utils__net_time.c
diff options
context:
space:
mode:
authorTimur I. Bakeyev <timur@FreeBSD.org>2016-05-07 00:38:27 +0000
committerTimur I. Bakeyev <timur@FreeBSD.org>2016-05-07 00:38:27 +0000
commitd510581cd41940cd25c80a664aa23448912d377b (patch)
treee4b5bd82cee1dd9813f4c2dd7b11bd0c52c4814f /net/samba44/files/patch-source3__utils__net_time.c
parentUpdate samba42 and samba43 to the latest versions. A lot of fixes are made to... (diff)
Add latest release of Samba 4.4. Port is NOT fully tested, don't use in the production(yet). Make backups before deploying.
Diffstat (limited to 'net/samba44/files/patch-source3__utils__net_time.c')
-rw-r--r--net/samba44/files/patch-source3__utils__net_time.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/net/samba44/files/patch-source3__utils__net_time.c b/net/samba44/files/patch-source3__utils__net_time.c
new file mode 100644
index 000000000000..6c6ce7614652
--- /dev/null
+++ b/net/samba44/files/patch-source3__utils__net_time.c
@@ -0,0 +1,19 @@
+--- ./source3/utils/net_time.c.orig 2010-04-01 15:26:22.000000000 +0200
++++ ./source3/utils/net_time.c 2010-04-23 01:08:35.000000000 +0200
+@@ -87,10 +87,15 @@
+ if (!tm) {
+ return "unknown";
+ }
+-
++#if defined(FREEBSD)
++ return talloc_asprintf(talloc_tos(), "%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
+ return talloc_asprintf(talloc_tos(), "%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
+ }
+
+ int net_time_usage(struct net_context *c, int argc, const char **argv)