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

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