mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Clarify usage of FL_NONE value.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
8cbb9cd1ac
commit
b684ce2565
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user