From 0103817eb5b580d769e793c8bef053eb077fa0be Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 9 Apr 2024 22:46:43 -0400 Subject: kernel: vfs_subr: Don't require leading '/' Signed-off-by: Ian Moffett --- sys/kern/vfs_subr.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index cd16704..63aed75 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -73,8 +73,6 @@ vfs_hash_path(const char *path) if (strcmp(path, "/") == 0 || !vfs_is_valid_path(path)) { return -1; - } else if (*path != '/') { - return -1; } do { -- cgit v1.2.3