summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2008-07-06 18:17:36 +0000
committererdgeist <erdgeist@erdgeist.org>2008-07-06 18:17:36 +0000
commitf36423bf6c6c750c0dd918988c1c5d8b24c6c8d3 (patch)
tree81587408237118475b0e2a16e9f1d0cd0bb48ae1 /ezjail-admin
parent68704c8cc9a3f3a553c6a60b1f969baf36deb6c9 (diff)
Fix pathname substitution to prevent incorrect retrieval of soft links, when creating a jail from archive.
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index b2904d0..fd35abe 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -471,7 +471,7 @@ create)
471 unset ezjail_archive_opt 471 unset ezjail_archive_opt
472 ezjail_makeabsolute ezjail_fromarchive 472 ezjail_makeabsolute ezjail_fromarchive
473 [ "${ezjail_fromarchive}" = "-" ] && unset ezjail_archive_opt || ezjail_archive_opt="-f ${ezjail_fromarchive}" 473 [ "${ezjail_fromarchive}" = "-" ] && unset ezjail_archive_opt || ezjail_archive_opt="-f ${ezjail_fromarchive}"
474 mkdir -p "${ezjail_rootdir}" && cd "${ezjail_rootdir}" && pax -rz -pe ${ezjail_archive_opt} -s:^ezjail/:: ezjail/* 474 mkdir -p "${ezjail_rootdir}" && cd "${ezjail_rootdir}" && pax -rz -pe ${ezjail_archive_opt} -s:^ezjail:.: ezjail/*
475 [ $? -eq 0 ] || detach_images || exerr "Error: Could not extract archive from ${ezjail_fromarchive}." 475 [ $? -eq 0 ] || detach_images || exerr "Error: Could not extract archive from ${ezjail_fromarchive}."
476 elif [ -z "${ezjail_exists}" ]; then 476 elif [ -z "${ezjail_exists}" ]; then
477 # now take a copy of our template jail 477 # now take a copy of our template jail