Dont terminate version string by 0x0a

This commit is contained in:
Radim Kolar 2009-09-13 17:35:42 +02:00
parent 2312946424
commit fd581d13d9
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,11 @@ Version NEXT
fver now reports if server can process extra data in input packets. fver now reports if server can process extra data in input packets.
fspclient did that for a long time. This field is used by fspd fspclient did that for a long time. This field is used by fspd
2.8.1 beta 21 or newer. 2.8.1 beta 21 or newer.
Server version string sent as response to CC_VERSION command have
no longer \n appended to it. Old FSP used it but fver client
command can handle server strings without \n for quite a long
time, so i decided to remove it. It is bad idea to terminate
version strings by \n while it is not required by FSP protocol.
Version 2.8.1b25 - 10 Sep 2009 Version 2.8.1b25 - 10 Sep 2009
GNU autotools build system was entirely replaced by SCons GNU autotools build system was entirely replaced by SCons

View File

@ -429,7 +429,6 @@ static void server_show_version (struct sockaddr_in * from, UBUF * ub)
char buf[UBUF_SPACE], verflags = 0; char buf[UBUF_SPACE], verflags = 0;
unsigned int xtra = VER_BYTES; unsigned int xtra = VER_BYTES;
strcpy(buf, "fspd " PACKAGE_VERSION); strcpy(buf, "fspd " PACKAGE_VERSION);
strcat(buf, "\n");
if (logging) verflags |= VER_LOG; if (logging) verflags |= VER_LOG;
if (read_only) verflags |= VER_READONLY; if (read_only) verflags |= VER_READONLY;