diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-22 22:32:09 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-22 22:32:09 -0700 |
commit | f5ca2ea1f9436ca12dabaecaeed8fe3db69c0c58 (patch) | |
tree | 93e174b501783cd085e067683a0c5e57ab040359 /src/util.lisp | |
parent | c1f5de3aff294e770ae7a4b54043d6ebd9f20421 (diff) | |
download | consfigurator-f5ca2ea1f9436ca12dabaecaeed8fe3db69c0c58.tar.gz |
factor out CHROOT-PATHNAME
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/util.lisp')
-rw-r--r-- | src/util.lisp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.lisp b/src/util.lisp index c611c65..82a7f55 100644 --- a/src/util.lisp +++ b/src/util.lisp @@ -174,6 +174,10 @@ one-dimensional collections of values." (call-next-method)) object)) +(defun chroot-pathname (pathname chroot) + (merge-pathnames (enough-pathname pathname #P"/") + (ensure-directory-pathname chroot))) + ;;;; Progress & debug printing |