summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/status.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c
index 7c89ad6d63..f99fe9e561 100644
--- a/source3/utils/status.c
+++ b/source3/utils/status.c
@@ -199,6 +199,7 @@ static void print_share_mode(share_mode_entry *e, char *fname)
{
if (fread(&crec,sizeof(crec),1,f) != 1)
break;
+ if (crec.cnum == -1) continue;
if ( crec.magic == 0x280267 && process_exists(crec.pid)
&& Ucrit_checkUsername(uidtoname(crec.uid)) /* added by OH */
)