CVSROOT: /cvs Module name: src Changes by: guent...@cvs.openbsd.org 2015/02/12 16:44:57
Modified files: bin/pax : ar_subs.c extern.h file_subs.c pat_rep.c pax.c tables.c tables.h Log message: 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@