s3-smbstatus: display [u|g]id of -1 as "-1" in connection list
commit54ee31eae52e72373d28b9666e5680da5bd99da8
authorBjörn Baumbach <bb@sernet.de>
Tue, 9 Jul 2013 10:32:34 +0000 (9 12:32 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 15 Jul 2013 18:53:37 +0000 (15 20:53 +0200)
treed30b808139ddd1d4cd2ec1c004c2e6e8daaeda67
parentd07b694f85c31a461d5697b56494c8ee4000925f
s3-smbstatus: display [u|g]id of -1 as "-1" in connection list

In order to avoid displayed uid or gid of "4294967295" instead of "-1", we
need to fetch the special case -1.
The id can be -1 if we are reading e.g. incomplete session information.

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jul 10 01:18:30 CEST 2013 on sn-devel-104
(cherry picked from commit 577cef82c776759c9f3cad7d33057ac865c40769)

The last 3 patches address bug #10003 - s3-lib:segmentation fault while
reading incomplete session info.
source3/utils/status.c