summaryrefslogtreecommitdiff
path: root/source4/lib/version.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/version.c')
-rw-r--r--source4/lib/version.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/lib/version.c b/source4/lib/version.c
index a5733a953d..b7aa81a081 100644
--- a/source4/lib/version.c
+++ b/source4/lib/version.c
@@ -35,6 +35,11 @@ const char *samba_version_string(void)
#else
const char *vendor_suffix = NULL;
#endif
+#ifdef SAMBA_VERSION_VENDOR_PATCH
+ const char *vendor_patch = SAMBA_VERSION_VENDOR_PATCH;
+#else
+ const char *vendor_patch = NULL;
+#endif
static char *samba_version;
static BOOL init_samba_version;
@@ -43,10 +48,12 @@ const char *samba_version_string(void)
}
samba_version = talloc_asprintf(talloc_autofree_context(),
- "%s%s%s%s%s%s",
+ "%s%s%s%s%s%s%s%s",
official_string,
(vendor_suffix?"-":""),
(vendor_suffix?vendor_suffix:""),
+ (vendor_patch?"-":""),
+ (vendor_patch?vendor_patch:""),
(release_nickname?" (":""),
(release_nickname?release_nickname:""),
(release_nickname?")":""));