diff options
author | Eric Andersen | 2003-07-22 08:26:05 +0000 |
---|---|---|
committer | Eric Andersen | 2003-07-22 08:26:05 +0000 |
commit | 725db196c36789b740e589b0b8a7da341af77351 (patch) | |
tree | fff80ce29c30a7ac6da505d4142d1af31c3a8af6 | |
parent | d9fe958921259372327a76307131e32a44fe15ad (diff) | |
download | busybox-725db196c36789b740e589b0b8a7da341af77351.zip busybox-725db196c36789b740e589b0b8a7da341af77351.tar.gz |
Very minor rdate updates
-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 2a90b66..d01ab2d 100644 --- a/include/applets.h +++ b/include/applets.h @@ -458,7 +458,7 @@ APPLET(pwd, pwd_main, _BB_DIR_BIN, _BB_SUID_NEVER) #endif #ifdef CONFIG_RDATE - APPLET(rdate, rdate_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) + APPLET(rdate, rdate_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER) #endif #ifdef CONFIG_READLINK APPLET(readlink, readlink_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) diff --git a/include/usage.h b/include/usage.h index 094eae8..bf1ad94 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1898,7 +1898,7 @@ "/root\n" #define rdate_trivial_usage \ - "[OPTION] HOST" + "[-sp] HOST" #define rdate_full_usage \ "Get and possibly set the system date and time from a remote HOST.\n\n" \ "Options:\n" \ diff --git a/util-linux/rdate.c b/util-linux/rdate.c index 3c3b152..a5699eb 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c @@ -48,7 +48,7 @@ static time_t askremotedate(const char *host) fd = xconnect(host, port); - if (read(fd, (void *)&nett, 4) != 4) /* read time from server */ + if (safe_read(fd, (void *)&nett, 4) != 4) /* read time from server */ bb_error_msg_and_die("%s did not send the complete time", host); close(fd); |