View | Details | Raw Unified | Return to bug 237517 | Differences between
and this patch

Collapse All | Expand All

(-)cddl/contrib/opensolaris/lib/libzfs/common/libzfs_mount.c (-1 / +2 lines)
Lines 1286-1292 Link Here
1286
static boolean_t
1286
static boolean_t
1287
libzfs_path_contains(const char *path1, const char *path2)
1287
libzfs_path_contains(const char *path1, const char *path2)
1288
{
1288
{
1289
	return (strstr(path2, path1) == path2 && path2[strlen(path1)] == '/');
1289
	return (strcmp(path1, path2) == 0 || strcmp(path1, "/") == 0 ||
1290
	    (strstr(path2, path1) == path2 && path2[strlen(path1)] == '/'));
1290
}
1291
}
1291
1292
1292
1293

Return to bug 237517