Changeset View
Changeset View
Standalone View
Standalone View
files/patch-source3_utils_net__time.c
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- source3/utils/net_time.c.orig 2019-01-15 10:07:00 UTC | |||||
+++ source3/utils/net_time.c | |||||
@@ -81,10 +81,15 @@ static const char *systime(time_t t) | |||||
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) |