From af8fcd76e51a2fae486e5518da76622dda4bc184 Mon Sep 17 00:00:00 2001 From: Zhou Kang Date: Thu, 6 Jul 2023 11:43:03 +0000 Subject: [PATCH] fix rto file path --- src/binfmt_rto/binfmt_rto.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/binfmt_rto/binfmt_rto.c b/src/binfmt_rto/binfmt_rto.c index 3998cc5..8d78366 100644 --- a/src/binfmt_rto/binfmt_rto.c +++ b/src/binfmt_rto/binfmt_rto.c @@ -1101,13 +1101,10 @@ static struct file * try_get_rto_file(struct file *file) struct file *rto_file; buffer = kmalloc(PATH_MAX, GFP_KERNEL); - rto_path = dentry_path_raw(file->f_path.dentry, buffer, PATH_MAX - 5); + rto_path = file_path(file, buffer, PATH_MAX - 5); strcat(rto_path, ".rto"); rto_file = open_exec(rto_path); - // bug: the path is wrong when NFS - printk("zk--- %s\n", rto_path); - kfree(buffer); return rto_file; } -- Gitee