]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Fix sabotaged Landlock sandbox check.
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 30 Mar 2024 12:36:28 +0000 (14:36 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 30 Mar 2024 12:36:28 +0000 (14:36 +0200)
It never enabled it.

CMakeLists.txt

index 1f0191673b453ed789d915e35ee874a17818494a..0e4d464faba62a1270b40a0cb24c2c59e4ace409 100644 (file)
@@ -1001,7 +1001,7 @@ if(NOT SANDBOX_FOUND AND ENABLE_SANDBOX MATCHES "^ON$|^landlock$")
         #include <linux/landlock.h>
         #include <sys/syscall.h>
         #include <sys/prctl.h>
-.
+
         void my_sandbox(void)
         {
             (void)prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);