diff --git a/src/binfmt_rto/binfmt_rto.c b/src/binfmt_rto/binfmt_rto.c index 3998cc52073bef72fa446fefe2a71182372f7812..8d7836605ef6520a3d9d803b5eb12e9e061f4b97 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; }