Clarify usage of FL_NONE value.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2018-07-22 17:20:27 +03:00
parent 8cbb9cd1ac
commit b684ce2565
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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"));