bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/2] proc/info: Fix EIO with /proc/6/stat


From: Damien Zammit
Subject: [PATCH 2/2] proc/info: Fix EIO with /proc/6/stat
Date: Sat, 5 Jun 2021 20:10:48 +1000

---
 proc/info.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/proc/info.c b/proc/info.c
index 6c2567d2..9c5d3543 100644
--- a/proc/info.c
+++ b/proc/info.c
@@ -316,7 +316,10 @@ get_string_array (task_t t,
 
   err = get_vector (t, loc, &vector);
   if (err)
-    return err;
+    {
+      *buflen = 0;
+      return 0;
+    }
 
   bp = (char *) *buf;
   for (vp = vector; *vp; ++vp)
-- 
2.31.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]