From f36423bf6c6c750c0dd918988c1c5d8b24c6c8d3 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 6 Jul 2008 18:17:36 +0000 Subject: Fix pathname substitution to prevent incorrect retrieval of soft links, when creating a jail from archive. --- ezjail-admin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ezjail-admin b/ezjail-admin index b2904d0..fd35abe 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -471,7 +471,7 @@ create) unset ezjail_archive_opt ezjail_makeabsolute ezjail_fromarchive [ "${ezjail_fromarchive}" = "-" ] && unset ezjail_archive_opt || ezjail_archive_opt="-f ${ezjail_fromarchive}" - mkdir -p "${ezjail_rootdir}" && cd "${ezjail_rootdir}" && pax -rz -pe ${ezjail_archive_opt} -s:^ezjail/:: ezjail/* + mkdir -p "${ezjail_rootdir}" && cd "${ezjail_rootdir}" && pax -rz -pe ${ezjail_archive_opt} -s:^ezjail:.: ezjail/* [ $? -eq 0 ] || detach_images || exerr "Error: Could not extract archive from ${ezjail_fromarchive}." elif [ -z "${ezjail_exists}" ]; then # now take a copy of our template jail -- cgit v1.2.3