diff --git a/shared/util.go b/shared/util.go
index <HASH>..<HASH> 100644
--- a/shared/util.go
+++ b/shared/util.go
@@ -385,7 +385,7 @@ func isSharedMount(file *os.File, pathName string) int {
 	for scanner.Scan() {
 		line := scanner.Text()
 		rows := strings.Fields(line)
-		if !strings.HasSuffix(pathName, rows[3]) || rows[4] != pathName {
+		if !strings.HasSuffix(pathName, rows[3]) && rows[4] != pathName {
 			continue
 		}
 		if strings.HasPrefix(rows[6], "shared:") {
Fix logic for sharedmount check. Fixes #<I>