From 79caf529d014921601474c65c7f72ad6541dcda7 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 22 Aug 2014 11:18:51 -0700 Subject: [PATCH] s3: smbstatus: Now we clean up brlocks at conflict time, smbstatus might print invalid entries. Filter them out. Signed-off-by: Jeremy Allison --- source3/utils/status.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source3/utils/status.c b/source3/utils/status.c index 7bbcea5..bf794c0 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -210,6 +210,14 @@ static void print_brl(struct file_id id, char *fname = NULL; struct share_mode_lock *share_mode; + if (pid.pid == 0) { + /* + * Now we cleanup at conflict time we can be called + * with invalid entries. Ignore them. + */ + return; + } + if (count==0) { d_printf("Byte range locks:\n"); d_printf("Pid dev:inode R/W start size SharePath Name\n"); -- 2.1.0.rc2.206.gedb03e5