diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/version.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/version.c b/source3/lib/version.c index 99f836c2d5..3bd8304012 100644 --- a/source3/lib/version.c +++ b/source3/lib/version.c @@ -27,6 +27,7 @@ const char *samba_version_string(void) return SAMBA_VERSION_OFFICIAL_STRING; #else static fstring samba_version; + fstring tmp_version; static BOOL init_samba_version; if (init_samba_version) @@ -36,6 +37,11 @@ const char *samba_version_string(void) SAMBA_VERSION_OFFICIAL_STRING, SAMBA_VERSION_VENDOR_SUFFIX); +#ifdef SAMBA_VENDOR_PATCH + fstr_sprintf( tmp_version, "-%d", SAMBA_VENDOR_PATCH ); + fstrcat( samba_version, tmp_version ); +#endif + init_samba_version = True; return samba_version; #endif |