summaryrefslogtreecommitdiff
path: root/source3/utils/net_time.c
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
commite5dbe13b58422535569476443ddb20250bb0114c (patch)
tree16bdc4d398f54f15489ec9a7d2b2f3666a6b7514 /source3/utils/net_time.c
parent32ba2c889fb7eaa0dde8a2951572da7e2a4da3ce (diff)
downloadsamba-e5dbe13b58422535569476443ddb20250bb0114c.tar.gz
samba-e5dbe13b58422535569476443ddb20250bb0114c.tar.bz2
samba-e5dbe13b58422535569476443ddb20250bb0114c.zip
added a comment about /bin/date
(This used to be commit 2183c1f3b09db5c078327050279130ac825c71f8)
Diffstat (limited to 'source3/utils/net_time.c')
-rw-r--r--source3/utils/net_time.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/utils/net_time.c b/source3/utils/net_time.c
index f7f3f894b0..6c5f38c17a 100644
--- a/source3/utils/net_time.c
+++ b/source3/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);