From 05e59e5fb0064c97a1c10921ecd549f2d4a58565 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 09 Oct 2024 06:14:40 +0000
Subject: [PATCH] add REDIRECT
---
kernel/tools/testing/selftests/proc/proc-self-syscall.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/kernel/tools/testing/selftests/proc/proc-self-syscall.c b/kernel/tools/testing/selftests/proc/proc-self-syscall.c
index 7b9018f..8511dcf 100644
--- a/kernel/tools/testing/selftests/proc/proc-self-syscall.c
+++ b/kernel/tools/testing/selftests/proc/proc-self-syscall.c
@@ -19,7 +19,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
-#include <unistd.h>
#include <string.h>
#include <stdio.h>
@@ -38,7 +37,7 @@
fd = open("/proc/self/syscall", O_RDONLY);
if (fd == -1) {
if (errno == ENOENT)
- return 2;
+ return 4;
return 1;
}
--
Gitblit v1.6.2