diff options
author | Martin Matuska <martin@matuska.org> | 2021-08-21 09:07:54 +0200 |
---|---|---|
committer | Martin Matuska <martin@matuska.org> | 2021-08-21 09:13:54 +0200 |
commit | 13023595c9623374cd386c6dd419241fb5082b41 (patch) | |
tree | 3938a1b3025253987869c91d942cfa4a77e75a1d /libarchive/archive_write_disk_posix.c | |
parent | 5e646b890fb3c59ef6f94221ef8ef9ae62a8a9d6 (diff) | |
download | libarchive-13023595c9623374cd386c6dd419241fb5082b41.tar.gz |
write_disk_posix: rename variable in check_symlinks_fsobj()
Rename the flag "extracting_hardlink" to "checking_linkname" to
be more accurate about its use. If the variable is non-zero it
means that check_symlinks_fsobj() is called on the linkname
when a hardlink is going to be created.
Diffstat (limited to 'libarchive/archive_write_disk_posix.c')
-rw-r--r-- | libarchive/archive_write_disk_posix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libarchive/archive_write_disk_posix.c b/libarchive/archive_write_disk_posix.c index 83a1f6d1..ba4e65df 100644 --- a/libarchive/archive_write_disk_posix.c +++ b/libarchive/archive_write_disk_posix.c @@ -2680,7 +2680,7 @@ fsobj_error(int *a_eno, struct archive_string *a_estr, */ static int check_symlinks_fsobj(char *path, int *a_eno, struct archive_string *a_estr, - int flags, int extracting_hardlink) + int flags, int checking_linkname) { #if !defined(HAVE_LSTAT) && \ !(defined(HAVE_OPENAT) && defined(HAVE_FSTATAT) && defined(HAVE_UNLINKAT)) @@ -2689,7 +2689,7 @@ check_symlinks_fsobj(char *path, int *a_eno, struct archive_string *a_estr, (void)error_number; /* UNUSED */ (void)error_string; /* UNUSED */ (void)flags; /* UNUSED */ - (void)extracting_hardlink; /* UNUSED */ + (void)checking_linkname; /* UNUSED */ return (ARCHIVE_OK); #else int res = ARCHIVE_OK; @@ -2811,7 +2811,7 @@ check_symlinks_fsobj(char *path, int *a_eno, struct archive_string *a_estr, head = tail + 1; } } else if (S_ISLNK(st.st_mode)) { - if (last && extracting_hardlink) { + if (last && checking_linkname) { #ifdef HAVE_LINKAT /* * Hardlinks to symlinks are safe to write |