From d360320618fe3a7f53ac1f05ee3ac54323a03c82 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 15 Mar 1998 02:37:52 +0000 Subject: - added the ability to kill off individual connections from SWAT (from the status page) - split the claim_connection() code into its own file - fixed the claim_connection() code to lock the file when manipulating it - always claim a null connection at startup - fixed a bug in the pidfile code (This used to be commit abd4a17e21d12be3d1747e94ceb1915abaf135e3) --- source3/utils/status.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/utils/status.c') 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 */ ) -- cgit