From 40e12afba3819abdf84e9db86a1afe1cbc50980f Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 10 May 2021 19:50:12 -0700 Subject: fix finding the data cache in chroots Signed-off-by: Sean Whitton --- src/connection/chroot.lisp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/connection/chroot.lisp') diff --git a/src/connection/chroot.lisp b/src/connection/chroot.lisp index 21d0cc2..bfbaab5 100644 --- a/src/connection/chroot.lisp +++ b/src/connection/chroot.lisp @@ -112,8 +112,10 @@ should be the mount point, without the chroot's root prefixed.") (datadir-inside (stripln (mrun - "chroot" into - "echo" "${XDG_CACHE_HOME:-$HOME/.cache}/consfigurator/data/"))) + (format + nil + "chroot ~A echo ${XDG_CACHE_HOME:-$HOME/.cache}/consfigurator/data/" + (escape-sh-token (unix-namestring into)))))) (datadir (ensure-pathname (subseq datadir-inside 1) :defaults into* :ensure-absolute t :ensure-directory t))) -- cgit v1.2.3