From ed6b5dd4db01d8cde0ffe4145deb426e131407d4 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 26 Jan 2005 17:07:59 +0000 Subject: fix --- lib/fuse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/fuse.c') diff --git a/lib/fuse.c b/lib/fuse.c index f80485d..004095c 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -1044,9 +1044,9 @@ static void do_link(struct fuse *f, struct fuse_in_header *in, struct fuse_entry_out outarg; res = -ENOENT; - oldpath = get_path(f, in->nodeid); + oldpath = get_path(f, arg->oldnodeid); if (oldpath != NULL) { - newpath = get_path_name(f, arg->newdir, name); + newpath = get_path_name(f, in->nodeid, name); if (newpath != NULL) { if (f->flags & FUSE_DEBUG) { printf("LINK %s\n", newpath); @@ -1056,7 +1056,7 @@ static void do_link(struct fuse *f, struct fuse_in_header *in, if (f->op.link && f->op.getattr) { res = f->op.link(oldpath, newpath); if (res == 0) - res = lookup_path(f, arg->newdir, in->unique, name, + res = lookup_path(f, in->nodeid, in->unique, name, newpath, &outarg); } free(newpath); -- cgit v1.2.3