diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-01-26 17:07:59 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-01-26 17:07:59 +0000 |
commit | ed6b5dd4db01d8cde0ffe4145deb426e131407d4 (patch) | |
tree | f7d15ff538b155e835b8e0d45cc55e822b6ec4a7 /lib/fuse.c | |
parent | ee808384c92adc475e73194a27ff9d40269af87b (diff) |
fix
Diffstat (limited to 'lib/fuse.c')
-rw-r--r-- | lib/fuse.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |