summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-11 05:28:56 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-11 05:28:56 +0000
commit2183c1f3b09db5c078327050279130ac825c71f8 (patch)
tree828f0301016de3d50cba21e8fab164496e671560
parentb3ba2293d0e4eac3b6408c3abc3dcacfa3f67fe4 (diff)
downloadsamba-2183c1f3b09db5c078327050279130ac825c71f8.tar.gz
samba-2183c1f3b09db5c078327050279130ac825c71f8.tar.xz
samba-2183c1f3b09db5c078327050279130ac825c71f8.zip
added a comment about /bin/date
-rw-r--r--source/utils/net_time.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/utils/net_time.c b/source/utils/net_time.c
index f7f3f894b0a..6c5f38c17ad 100644
--- a/source/utils/net_time.c
+++ b/source/utils/net_time.c
@@ -98,7 +98,10 @@ static int net_time_set(int argc, const char **argv)
d_printf("Can't contact server\n");
return -1;
}
-
+
+ /* yes, I know this is cheesy. Use "net time system" if you want to
+ roll your own. I'm putting this in as it works on a large number
+ of systems and the user has a choice in whether its used or not */
asprintf(&cmd, "/bin/date -u %s", systime(t));
system(cmd);
free(cmd);