diff options
| author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-07-22 08:26:05 +0000 |
|---|---|---|
| committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-07-22 08:26:05 +0000 |
| commit | 06b9a8f03ed1ac7a02ab2fcdd41d924fc8570ede (patch) | |
| tree | fff80ce29c30a7ac6da505d4142d1af31c3a8af6 | |
| parent | dafd1d37cd1911424fcac2f002910941f7ce264f (diff) | |
| download | busybox-w32-06b9a8f03ed1ac7a02ab2fcdd41d924fc8570ede.tar.gz busybox-w32-06b9a8f03ed1ac7a02ab2fcdd41d924fc8570ede.tar.bz2 busybox-w32-06b9a8f03ed1ac7a02ab2fcdd41d924fc8570ede.zip | |
Very minor rdate updates
git-svn-id: svn://busybox.net/trunk/busybox@7086 69ca8d6d-28ef-0310-b511-8ec308f3f277
| -rw-r--r-- | include/applets.h | 2 | ||||
| -rw-r--r-- | include/usage.h | 2 | ||||
| -rw-r--r-- | util-linux/rdate.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/applets.h b/include/applets.h index 2a90b66c5..d01ab2d74 100644 --- a/include/applets.h +++ b/include/applets.h | |||
| @@ -458,7 +458,7 @@ | |||
| 458 | APPLET(pwd, pwd_main, _BB_DIR_BIN, _BB_SUID_NEVER) | 458 | APPLET(pwd, pwd_main, _BB_DIR_BIN, _BB_SUID_NEVER) |
| 459 | #endif | 459 | #endif |
| 460 | #ifdef CONFIG_RDATE | 460 | #ifdef CONFIG_RDATE |
| 461 | APPLET(rdate, rdate_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) | 461 | APPLET(rdate, rdate_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER) |
| 462 | #endif | 462 | #endif |
| 463 | #ifdef CONFIG_READLINK | 463 | #ifdef CONFIG_READLINK |
| 464 | APPLET(readlink, readlink_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) | 464 | APPLET(readlink, readlink_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) |
diff --git a/include/usage.h b/include/usage.h index 094eae8d9..bf1ad949e 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -1898,7 +1898,7 @@ | |||
| 1898 | "/root\n" | 1898 | "/root\n" |
| 1899 | 1899 | ||
| 1900 | #define rdate_trivial_usage \ | 1900 | #define rdate_trivial_usage \ |
| 1901 | "[OPTION] HOST" | 1901 | "[-sp] HOST" |
| 1902 | #define rdate_full_usage \ | 1902 | #define rdate_full_usage \ |
| 1903 | "Get and possibly set the system date and time from a remote HOST.\n\n" \ | 1903 | "Get and possibly set the system date and time from a remote HOST.\n\n" \ |
| 1904 | "Options:\n" \ | 1904 | "Options:\n" \ |
diff --git a/util-linux/rdate.c b/util-linux/rdate.c index 3c3b152a2..a5699ebf4 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c | |||
| @@ -48,7 +48,7 @@ static time_t askremotedate(const char *host) | |||
| 48 | 48 | ||
| 49 | fd = xconnect(host, port); | 49 | fd = xconnect(host, port); |
| 50 | 50 | ||
| 51 | if (read(fd, (void *)&nett, 4) != 4) /* read time from server */ | 51 | if (safe_read(fd, (void *)&nett, 4) != 4) /* read time from server */ |
| 52 | bb_error_msg_and_die("%s did not send the complete time", host); | 52 | bb_error_msg_and_die("%s did not send the complete time", host); |
| 53 | 53 | ||
| 54 | close(fd); | 54 | close(fd); |
