From fcc8d79b6b5e1bc21ff7ea6353f3cd230e9243ee Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Fri, 16 Oct 2026 14:44:36 -0400 Subject: [PATCH] m-lua-scripting: fix the values of the Perm constants Lua does not support octal literals, so the permission values were parsed as decimal numbers and did not match the PipeWire ones. This gave restricted and flatpak clients write and link permissions. Use hexadecimal values instead. Fixes: #1044 Assisted-by: Claude:claude-opus-5-5 --- modules/module-lua-scripting/api/api.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/module-lua-scripting/api/api.lua b/modules/module-lua-scripting/api/api.lua index aafa49d98..0ca8c4155 100644 --- a/modules/module-lua-scripting/api/api.lua +++ b/modules/module-lua-scripting/api/api.lua @@ -184,11 +184,11 @@ local Feature = { }, } -PERM_R_VAL = 0400 -PERM_W_VAL = 0200 -PERM_X_VAL = 0100 -PERM_M_VAL = 0010 -PERM_L_VAL = 0020 +PERM_R_VAL = 0x100 +PERM_W_VAL = 0x080 +PERM_X_VAL = 0x040 +PERM_M_VAL = 0x008 +PERM_L_VAL = 0x010 local Perm = { NONE = 0, -- GitLab