summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-19 09:29:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:42 -0500
commit0e7b9f84ce2dcd5363409acc99a7b887a29be595 (patch)
tree735b7eeff7365f234f806f7f49c760891f31c826
parentab9cef60a0e655b60bdeade4c8022f04a69de0f8 (diff)
downloadsamba-0e7b9f84ce2dcd5363409acc99a7b887a29be595.tar.gz
samba-0e7b9f84ce2dcd5363409acc99a7b887a29be595.tar.bz2
samba-0e7b9f84ce2dcd5363409acc99a7b887a29be595.zip
r8589: - support --version option to smbstatus
- print samba version at startup (This used to be commit eb3e4bbe7f4a8f48c9246275ad6ef21ed0b4d357)
-rwxr-xr-xsource4/scripting/bin/smbstatus2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/bin/smbstatus b/source4/scripting/bin/smbstatus
index df8864f7e8..7fefae6963 100755
--- a/source4/scripting/bin/smbstatus
+++ b/source4/scripting/bin/smbstatus
@@ -14,6 +14,7 @@ var options = new Object();
ok = GetOptions(ARGV, options,
"POPT_AUTOHELP",
"POPT_COMMON_SAMBA",
+ "POPT_COMMON_VERSION",
"nbt");
if (ok == false) {
println("Failed to parse options: " + options.ERROR);
@@ -81,6 +82,7 @@ function show_nbt()
println("");
}
+printf("%s\n\n", lpGet("server string"));
if (options['nbt'] != undefined) {
show_nbt();