From c07a78ae005b9e41801f1d7f8e90a37d4d7f4449 Mon Sep 17 00:00:00 2001 From: prife Date: Sat, 11 Jan 2014 14:57:02 +0800 Subject: [PATCH] nfs: fix bug I have to mention that this bug is introduced by myself, in the last commit to dfs_nfs.c --- components/dfs/filesystems/nfs/dfs_nfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dfs/filesystems/nfs/dfs_nfs.c b/components/dfs/filesystems/nfs/dfs_nfs.c index 3709cc33f..0f40fa429 100644 --- a/components/dfs/filesystems/nfs/dfs_nfs.c +++ b/components/dfs/filesystems/nfs/dfs_nfs.c @@ -233,7 +233,7 @@ static nfs_fh3 *get_dir_handle(struct nfs_filesystem *nfs, const char *name) copy_handle(handle, &nfs->current_handle); } - while ((file = strtok_r(RT_NULL, "/", &path)) != RT_NULL && path != RT_NULL) + while ((file = strtok_r(RT_NULL, "/", &path)) != RT_NULL && path[0] != 0) { LOOKUP3args args; LOOKUP3res res; -- GitLab