aboutsummaryrefslogtreecommitdiff
path: root/src/connection/chroot.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection/chroot.lisp')
-rw-r--r--src/connection/chroot.lisp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/connection/chroot.lisp b/src/connection/chroot.lisp
index aeae134..aae0ad5 100644
--- a/src/connection/chroot.lisp
+++ b/src/connection/chroot.lisp
@@ -145,8 +145,7 @@ should be the mount point, without the chroot's root prefixed.")
(defmethod connection-shell-wrap ((connection shell-chroot-connection) cmd)
(format nil "chroot ~A sh -c ~A"
- (escape-sh-token (unix-namestring (slot-value connection 'into)))
- (escape-sh-token cmd)))
+ (sh-escape (slot-value connection 'into)) (sh-escape cmd)))
(defmethod connection-teardown :before ((connection shell-chroot-connection))
(dolist (mount (chroot-mounts connection))