1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

added a comment about /bin/date

(This used to be commit 2183c1f3b0)
This commit is contained in:
Andrew Tridgell 2001-12-11 05:28:56 +00:00
parent 32ba2c889f
commit e5dbe13b58

View File

@ -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);