Skip to content

Commit 3f261a4

Browse files
authored
Remove __DATE__ from version message (#128)
This made the build unreproducible. The Debian package has been patching out this information since 2016, with no ill effects reported.
1 parent e8d76fa commit 3f261a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connection.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ static char CC_initial_log(ConnectionClass *self, const char *func)
10101010
const ConnInfo *ci = &self->connInfo;
10111011
char *encoding, vermsg[128];
10121012

1013-
snprintf(vermsg, sizeof(vermsg), "Driver Version='%s,%s'"
1013+
snprintf(vermsg, sizeof(vermsg), "Driver Version='%s'"
10141014
#ifdef WIN32
10151015
" linking %d"
10161016
#ifdef _MT
@@ -1028,7 +1028,7 @@ static char CC_initial_log(ConnectionClass *self, const char *func)
10281028
#endif /* DEBUG */
10291029
" library"
10301030
#endif /* WIN32 */
1031-
"\n", POSTGRESDRIVERVERSION, __DATE__
1031+
"\n", POSTGRESDRIVERVERSION
10321032
#ifdef _MSC_VER
10331033
, _MSC_VER
10341034
#endif /* _MSC_VER */

0 commit comments

Comments
 (0)