Return to skeyinit.c CVS log | Up to [local] / src / usr.bin / skeyinit |
version 1.4, 1996/09/27 15:49:04 | version 1.5, 1996/09/28 00:04:44 | ||
---|---|---|---|
|
|
||
errx(1, "must be setuid root."); | errx(1, "must be setuid root."); | ||
(void)time(&now); | (void)time(&now); | ||
tm = localtime(&now); | (void)sprintf(tbuf, "%05ld", (long) (now % 100000)); | ||
(void)strftime(tbuf, sizeof(tbuf), "%M%j", tm); | |||
if (gethostname(hostname, sizeof(hostname)) < 0) | if (gethostname(hostname, sizeof(hostname)) < 0) | ||
err(1, "gethostname"); | err(1, "gethostname"); |