summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-07-18 13:52:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:49 -0500
commitfa07beaf80ace4ab818ac596116b7cba8e49fd7c (patch)
treebc0fd63af5f4b186fad5eaf7bc933659c6bbb7b2 /source3/utils
parentf5033a1e625f74c517751bdb13f12f625ad34eb4 (diff)
downloadsamba-fa07beaf80ace4ab818ac596116b7cba8e49fd7c.tar.gz
samba-fa07beaf80ace4ab818ac596116b7cba8e49fd7c.tar.bz2
samba-fa07beaf80ace4ab818ac596116b7cba8e49fd7c.zip
r23954: merge from 3_0-ctdb-tridge:
don't display dead share mode entries in smbstatus metze (This used to be commit b52bb1e1556d2f4c2bfbd21e12782420bc26a029)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/status.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c
index 97f005f87e..ca09dfa28d 100644
--- a/source3/utils/status.c
+++ b/source3/utils/status.c
@@ -111,6 +111,10 @@ static void print_share_mode(const struct share_mode_entry *e,
return;
}
+ if (!process_exists(e->pid)) {
+ return;
+ }
+
if (count==0) {
d_printf("Locked files:\n");
d_printf("Pid Uid DenyMode Access R/W Oplock SharePath Name Time\n");