diff options
author | Steve French <smfrench@gmail.com> | 2009-02-24 12:43:12 -0600 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-03-06 08:28:24 +0100 |
commit | 947a727e5205780c3c4d32a3e161b47e67d448f0 (patch) | |
tree | b9ba0155d83a7b35db5bc34918cf277761f35ce0 | |
parent | 750c7f565bdef64636fa6d414ca6d24e40f54536 (diff) | |
download | samba-947a727e5205780c3c4d32a3e161b47e67d448f0.tar.gz samba-947a727e5205780c3c4d32a3e161b47e67d448f0.tar.xz samba-947a727e5205780c3c4d32a3e161b47e67d448f0.zip |
cifs mount did not properly display version string when no other parameters passed in.
Acked-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit c7bf0f4c222ae46be2a751997e03197832b494cd)
-rw-r--r-- | source/client/mount.cifs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c index a7366095805..67e964d6351 100644 --- a/source/client/mount.cifs.c +++ b/source/client/mount.cifs.c @@ -1079,6 +1079,14 @@ int main(int argc, char ** argv) } mountpoint = argv[2]; } else { + if ((strcmp (argv[1], "--version") == 0) || + ((strcmp (argv[1], "-V") == 0))) { + printf ("mount.cifs version: %s.%s%s\n", + MOUNT_CIFS_VERSION_MAJOR, + MOUNT_CIFS_VERSION_MINOR, + MOUNT_CIFS_VENDOR_SUFFIX); + exit (0); + } mount_cifs_usage(); exit(EX_USAGE); } |