aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-07-22 08:26:05 +0000
committerEric Andersen <andersen@codepoet.org>2003-07-22 08:26:05 +0000
commit725db196c36789b740e589b0b8a7da341af77351 (patch)
treefff80ce29c30a7ac6da505d4142d1af31c3a8af6
parentd9fe958921259372327a76307131e32a44fe15ad (diff)
downloadbusybox-w32-725db196c36789b740e589b0b8a7da341af77351.tar.gz
busybox-w32-725db196c36789b740e589b0b8a7da341af77351.tar.bz2
busybox-w32-725db196c36789b740e589b0b8a7da341af77351.zip
Very minor rdate updates
-rw-r--r--include/applets.h2
-rw-r--r--include/usage.h2
-rw-r--r--util-linux/rdate.c2
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);