← Commit list

725db196c

Eric Andersen
Eric Andersen
2003-07-22
FAILED Duration: 73s

Subject

Very minor rdate updates

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

include/applets.h+1 -1
@@ -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)
include/usage.h+1 -1
@@ -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" \
util-linux/rdate.c+1 -1
@@ -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);