From 59a539285033a951f6c3abec4ef6ba90271d5dae Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 6 May 2026 11:44:23 +0200 Subject: [PATCH] vulkan: fix the open() flags The second argument are the flags, the mode is not needed for RDONLY. Accidentally works because O_RDONLY is 0 but ignored the O_CLOEXEC flags. --- spa/plugins/vulkan/vulkan-compute-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/vulkan/vulkan-compute-utils.c b/spa/plugins/vulkan/vulkan-compute-utils.c index 4360d1081..b51fd81c1 100644 --- a/spa/plugins/vulkan/vulkan-compute-utils.c +++ b/spa/plugins/vulkan/vulkan-compute-utils.c @@ -165,7 +165,7 @@ static VkShaderModule createShaderModule(struct vulkan_compute_state *s, const c int fd; struct stat stat; - if ((fd = open(shaderFile, 0, O_RDONLY | O_CLOEXEC)) == -1) { + if ((fd = open(shaderFile, O_RDONLY | O_CLOEXEC)) == -1) { spa_log_error(s->log, "can't open %s: %m", shaderFile); return VK_NULL_HANDLE; }