diff options
author | 2015-02-12 23:44:57 +0000 | |
---|---|---|
committer | 2015-02-12 23:44:57 +0000 | |
commit | 6b45b4706c10e32905d6be347ff82fceb9bcf8f4 (patch) | |
tree | 2b515853e4ec44f5f596ae017c9449ba5a0c586c /usr.sbin/syslogd/syslogd.c | |
parent | Free the buffers used for the sysctl. OK sthen@ (diff) | |
download | wireguard-openbsd-6b45b4706c10e32905d6be347ff82fceb9bcf8f4.tar.xz wireguard-openbsd-6b45b4706c10e32905d6be347ff82fceb9bcf8f4.zip |
Prevent an archive from esacaping the current directory by itself:
when extracting a symlink whose value is absolute or contains ".."
components, just create a zero-length normal file (with additional
tracking of the mode and hardlinks to the symlink) until everything
else is extracted, then go back and replace it with the requested
link (if its still that zero-length placeholder).
This and previous symlink and ".." path fixes prompted by a report
from Daniel Cegielka (daniel.cegielka (at) gmail.com)
ok millert@
Diffstat (limited to 'usr.sbin/syslogd/syslogd.c')
0 files changed, 0 insertions, 0 deletions