From 260f0d4c1a0dbad59f1d09557c7e5620611c0a86 Mon Sep 17 00:00:00 2001 From: runrunya Date: Mon, 21 Apr 2025 08:54:57 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=9B=9E=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: runrunya --- fs/hmdfs/hmdfs_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/hmdfs/hmdfs_server.c b/fs/hmdfs/hmdfs_server.c index 0a570225b118..accb7697f3c8 100644 --- a/fs/hmdfs/hmdfs_server.c +++ b/fs/hmdfs/hmdfs_server.c @@ -1260,11 +1260,11 @@ void hmdfs_server_rmdir(struct hmdfs_peer *con, struct hmdfs_head_cmd *cmd, path = rmdir_recv->path; name = rmdir_recv->path + le32_to_cpu(rmdir_recv->path_len) + 1; - if (path_contain_dotdot(rmdir_recv->path, rmdir_recv->path_len)) { + if (path_contain_dotdot(path, rmdir_recv->path_len)) { err = -EINVAL; goto rmdir_out; } - if (path_contain_dotdot(rmdir_recv->path, rmdir_recv->path_len)) { + if (path_contain_dotdot(name, rmdir_recv->name_len)) { err = -EINVAL; goto rmdir_out; } -- Gitee