Blame SOURCES/procps-ng-3.3.15-ps-select.patch

9561f8
From 06995518605fed7a1a29551be0eff01b2f9e89b7 Mon Sep 17 00:00:00 2001
9561f8
From: rpm-build <rpm-build>
9561f8
Date: Tue, 13 Dec 2022 16:02:50 -0500
9561f8
Subject: [PATCH]
9561f8
9561f8
---
9561f8
 ps/common.h | 2 +-
9561f8
 ps/select.c | 2 +-
9561f8
 2 files changed, 2 insertions(+), 2 deletions(-)
9561f8
9561f8
diff --git a/ps/common.h b/ps/common.h
9561f8
index 905d320..fc4d3a8 100644
9561f8
--- a/ps/common.h
9561f8
+++ b/ps/common.h
9561f8
@@ -189,7 +189,7 @@ typedef union sel_union {
9561f8
   uid_t uid;
9561f8
   gid_t gid;
9561f8
   dev_t tty;
9561f8
-  char  cmd[64];  /* this is _not_ \0 terminated */
9561f8
+  char  cmd[16];  /* this is _not_ \0 terminated */
9561f8
 } sel_union;
9561f8
 
9561f8
 typedef struct selection_node {
9561f8
diff --git a/ps/select.c b/ps/select.c
9561f8
index f58ca25..e12982d 100644
9561f8
--- a/ps/select.c
9561f8
+++ b/ps/select.c
9561f8
@@ -117,7 +117,7 @@ static int proc_was_listed(proc_t *buf){
9561f8
     break; case SEL_SESS: return_if_match(session,pid);
9561f8
 
9561f8
     break; case SEL_COMM: i=sn->n; while(i--)
9561f8
-    if(!strncmp( buf->cmd, (*(sn->u+i)).cmd, 63 )) return 1;
9561f8
+    if(!strncmp( buf->cmd, (*(sn->u+i)).cmd, 15 )) return 1;
9561f8
 
9561f8
 
9561f8
 
9561f8
-- 
9561f8
2.31.1
9561f8