aboutsummaryrefslogtreecommitdiff
path: root/src/connection
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-11-09 17:43:41 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-11-09 17:51:51 -0700
commit26f92f8368df8b6f8e7e151740ddfff5a886c588 (patch)
tree8d254086e5715b646830990ba122891f9aa7152a /src/connection
parent39d0afb7a4e569a59c854859258c23ea48ee66d3 (diff)
downloadconsfigurator-26f92f8368df8b6f8e7e151740ddfff5a886c588.tar.gz
avoid unbound variable error on older kernels without CLONE_NEWTIME
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection')
-rw-r--r--src/connection/linux-namespace.lisp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connection/linux-namespace.lisp b/src/connection/linux-namespace.lisp
index dc913e8..f5bbe19 100644
--- a/src/connection/linux-namespace.lisp
+++ b/src/connection/linux-namespace.lisp
@@ -241,7 +241,8 @@ setgroups(2) is denied in the namespace."
("net" . ,+CLONE_NEWNET+)
("pid" . ,+CLONE_NEWPID+)
("mnt" . ,+CLONE_NEWNS+)
- ("time" . ,+CLONE_NEWTIME+))
+ ,@(and (boundp '+CLONE_NEWTIME+)
+ `(("time" . ,+CLONE_NEWTIME+))))
:test #'equal)
(define-error-retval-cfun () "setns" :int (fd :int) (type :int))