s3-smbstatus: display [u|g]id of -1 as "-1" in connection list
authorBjörn Baumbach <bb@sernet.de>
Tue, 9 Jul 2013 10:32:34 +0000 (12:32 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 15 Jul 2013 18:52:59 +0000 (20:52 +0200)
commitf31f55b7b0f4e3acca06660ce42fc82ecd690f91
tree206433aabcc72a00265d33acad9634ef32df3e78
parentc286950a5499632cc5241e58bb2e552297581c9e
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