This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: v4l2-compliance: use geteuid instead of getuid
Author:  Hans Verkuil <hverk...@xs4all.nl>
Date:    Tue Mar 11 10:19:05 2025 +0100

For permission checking always use geteuid, not getuid.

Signed-off-by: Hans Verkuil <hverk...@xs4all.nl>

 utils/v4l2-compliance/v4l2-test-debug.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=368ffa5434db18d07af756c7b7f345c3520b35a3
diff --git a/utils/v4l2-compliance/v4l2-test-debug.cpp 
b/utils/v4l2-compliance/v4l2-test-debug.cpp
index 732c7ee36273..30f21dd9493e 100644
--- a/utils/v4l2-compliance/v4l2-test-debug.cpp
+++ b/utils/v4l2-compliance/v4l2-test-debug.cpp
@@ -30,7 +30,7 @@ int testRegister(struct node *node)
        struct v4l2_dbg_register reg;
        struct v4l2_dbg_chip_info chip = {};
        int ret;
-       int uid = getuid();
+       int uid = geteuid();
 
        reg.match.type = V4L2_CHIP_MATCH_BRIDGE;
        reg.match.addr = 0;

Reply via email to