aboutsummaryrefslogtreecommitdiff
path: root/lib/fuse.c
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <miklos@szeredi.hu>2005-01-26 17:07:59 +0000
committerGravatar Miklos Szeredi <miklos@szeredi.hu>2005-01-26 17:07:59 +0000
commited6b5dd4db01d8cde0ffe4145deb426e131407d4 (patch)
treef7d15ff538b155e835b8e0d45cc55e822b6ec4a7 /lib/fuse.c
parentee808384c92adc475e73194a27ff9d40269af87b (diff)
fix
Diffstat (limited to 'lib/fuse.c')
-rw-r--r--lib/fuse.c6
1 files changed, 3 insertions, 3 deletions
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);