From 26f92f8368df8b6f8e7e151740ddfff5a886c588 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 9 Nov 2021 17:43:41 -0700 Subject: avoid unbound variable error on older kernels without CLONE_NEWTIME Signed-off-by: Sean Whitton --- src/connection/linux-namespace.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/connection') 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)) -- cgit v1.2.3