diff options
Diffstat (limited to 'debian/patches/package-versioning.patch')
-rw-r--r-- | debian/patches/package-versioning.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/patches/package-versioning.patch b/debian/patches/package-versioning.patch new file mode 100644 index 000000000..4c227f054 --- /dev/null +++ b/debian/patches/package-versioning.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | Index: b/sshconnect.c | ||
2 | =================================================================== | ||
3 | --- a/sshconnect.c | ||
4 | +++ b/sshconnect.c | ||
5 | @@ -537,7 +537,7 @@ | ||
6 | snprintf(buf, sizeof buf, "SSH-%d.%d-%.100s%s", | ||
7 | compat20 ? PROTOCOL_MAJOR_2 : PROTOCOL_MAJOR_1, | ||
8 | compat20 ? PROTOCOL_MINOR_2 : minor1, | ||
9 | - SSH_VERSION, compat20 ? "\r\n" : "\n"); | ||
10 | + SSH_RELEASE, compat20 ? "\r\n" : "\n"); | ||
11 | if (roaming_atomicio(vwrite, connection_out, buf, strlen(buf)) | ||
12 | != strlen(buf)) | ||
13 | fatal("write: %.100s", strerror(errno)); | ||
14 | Index: b/sshd.c | ||
15 | =================================================================== | ||
16 | --- a/sshd.c | ||
17 | +++ b/sshd.c | ||
18 | @@ -426,7 +426,7 @@ | ||
19 | minor = PROTOCOL_MINOR_1; | ||
20 | } | ||
21 | snprintf(buf, sizeof buf, "SSH-%d.%d-%.100s%s", major, minor, | ||
22 | - SSH_VERSION, newline); | ||
23 | + SSH_RELEASE, newline); | ||
24 | server_version_string = xstrdup(buf); | ||
25 | |||
26 | /* Send our protocol version identification. */ | ||
27 | Index: b/version.h | ||
28 | =================================================================== | ||
29 | --- a/version.h | ||
30 | +++ b/version.h | ||
31 | @@ -3,4 +3,9 @@ | ||
32 | #define SSH_VERSION "OpenSSH_5.3" | ||
33 | |||
34 | #define SSH_PORTABLE "p1" | ||
35 | -#define SSH_RELEASE SSH_VERSION SSH_PORTABLE | ||
36 | +#define SSH_RELEASE_MINIMUM SSH_VERSION SSH_PORTABLE | ||
37 | +#ifdef SSH_EXTRAVERSION | ||
38 | +#define SSH_RELEASE SSH_RELEASE_MINIMUM " " SSH_EXTRAVERSION | ||
39 | +#else | ||
40 | +#define SSH_RELEASE SSH_RELEASE_MINIMUM | ||
41 | +#endif | ||