rpcclient: Fix and enhance rpcclient output
authorRobin Hack <hack.robin@gmail.com>
Fri, 30 Jan 2015 12:18:20 +0000 (13:18 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 17 Feb 2015 14:41:10 +0000 (15:41 +0100)
commitbcbdc74b2618bdddb920feecf3e8bd7d11f12441
treea291034edfa0041b6290b53fe50b5a614c572647
parent76c7918e01205fb38534170e56fc68553c3abf79
rpcclient: Fix and enhance rpcclient output

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11085

When rpcclient is called like:
$ rpcclient -c "getdata . Osversion"
at end of output is added one nonsense line
OsVersion: Osversion:

This patch removes this line and adds more human friendly ouput:
OsMajor: num
OsMinor: num
OsBuild: num

for OsVersion query.

For OsVersionEx two more lines are added:
OsMajor: num
OsMinor: num
OsBuild: num
ServicePackMajor: num
ServicePackMinor: num

Signed-off-by: Robin Hack <hack.robin@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/rpcclient/cmd_spoolss.c