Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:Update
libarchive.26953
symlink-followup-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File symlink-followup-fix.patch of Package libarchive.26953
commit e2ad1a2c3064fa9eba6274b3641c4c1beed25c0b Author: Martin Matuska <martin@matuska.org> Date: Sun Aug 22 03:53:28 2021 +0200 Never follow symlinks when setting file flags on Linux When opening a file descriptor to set file flags on linux, ensure no symbolic links are followed. This fixes the case when an archive contains a directory entry followed by a symlink entry with the same path. The fixup code would modify file flags of the symlink target. Index: libarchive-3.3.3/libarchive/archive_write_disk_posix.c =================================================================== --- libarchive-3.3.3.orig/libarchive/archive_write_disk_posix.c +++ libarchive-3.3.3/libarchive/archive_write_disk_posix.c @@ -3658,7 +3658,8 @@ set_fflags_platform(struct archive_write /* If we weren't given an fd, open it ourselves. */ if (myfd < 0) { - myfd = open(name, O_RDONLY | O_NONBLOCK | O_BINARY | O_CLOEXEC); + myfd = open(name, O_RDONLY | O_NONBLOCK | O_BINARY | + O_CLOEXEC | O_NOFOLLOW); __archive_ensure_cloexec_flag(myfd); } if (myfd < 0)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor