diff --git a/lib/vfs/direntry.c b/lib/vfs/direntry.c index 234d96396..607642e87 100644 --- a/lib/vfs/direntry.c +++ b/lib/vfs/direntry.c @@ -164,7 +164,7 @@ vfs_s_resolve_symlink (struct vfs_class *me, struct vfs_s_entry *entry, int foll } } - target = MEDATA->find_entry (me, entry->dir->super->root, linkname, follow - 1, 0); + target = MEDATA->find_entry (me, entry->dir->super->root, linkname, follow - 1, FL_NONE); g_free (fullname); return target; } diff --git a/lib/vfs/xdirentry.h b/lib/vfs/xdirentry.h index f51ddd040..b0cb7b0d4 100644 --- a/lib/vfs/xdirentry.h +++ b/lib/vfs/xdirentry.h @@ -19,7 +19,7 @@ #define LINK_FOLLOW 15 #define LINK_NO_FOLLOW -1 -/* For vfs_s_find_entry */ +/* For vfs_s_find_entry and vfs_s_find_inode */ #define FL_NONE 0 #define FL_MKDIR 1 #define FL_MKFILE 2 diff --git a/src/vfs/tar/tar.c b/src/vfs/tar/tar.c index be7531053..2143c6f80 100644 --- a/src/vfs/tar/tar.c +++ b/src/vfs/tar/tar.c @@ -733,7 +733,7 @@ tar_read_header (struct vfs_class *me, struct vfs_s_super *archive, int tard, si if (header->header.linkflag == LF_LINK) { - inode = vfs_s_find_inode (me, archive, current_link_name, LINK_NO_FOLLOW, 0); + inode = vfs_s_find_inode (me, archive, current_link_name, LINK_NO_FOLLOW, FL_NONE); if (inode == NULL) { message (D_ERROR, MSG_ERROR, _("Inconsistent tar archive"));