SHA256
1
0
forked from pool/socat
socat/socat-remove_date.patch

32 lines
1.3 KiB
Diff

diff --git a/socat.c b/socat.c
index 5062914..4c9aa1a 100644
--- a/socat.c
+++ b/socat.c
@@ -70,8 +70,6 @@ static int socat_newchild(void);
static const char socatversion[] =
#include "./VERSION"
;
-static const char timestamp[] = __DATE__" "__TIME__;
-
const char copyright_socat[] = "socat by Gerhard Rieger - see www.dest-unreach.org";
#if WITH_OPENSSL
const char copyright_openssl[] = "This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)";
@@ -273,7 +271,7 @@ int main(int argc, const char *argv[]) {
Info(copyright_openssl);
Info(copyright_ssleay);
#endif
- Debug2("socat version %s on %s", socatversion, timestamp);
+ Debug1("socat version %s", socatversion);
xiosetenv("VERSION", socatversion, 1); /* SOCAT_VERSION */
uname(&ubuf); /* ! here we circumvent internal tracing (Uname) */
Debug4("running on %s version %s, release %s, machine %s\n",
@@ -363,7 +361,7 @@ void socat_version(FILE *fd) {
struct utsname ubuf;
fputs(copyright_socat, fd); fputc('\n', fd);
- fprintf(fd, "socat version %s on %s\n", socatversion, timestamp);
+ fprintf(fd, "socat version %s\n", socatversion);
Uname(&ubuf);
fprintf(fd, " running on %s version %s, release %s, machine %s\n",
ubuf.sysname, ubuf.version, ubuf.release, ubuf.machine);