OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
[PATCH] ps, S state

From: Alexey Vatchenko (avbsdua.org)
Date: Fri Jan 11 2008 - 17:29:39 CST


Make /bin/ps determine 'S' state.

Index: bin/ps/print.c
===================================================================
RCS file: /cvs/openbsd/src/bin/ps/print.c,v
retrieving revision 1.43
diff -u -r1.43 print.c
--- bin/ps/print.c 6 Nov 2007 10:22:29 -0000 1.43
+++ bin/ps/print.c 11 Jan 2008 23:21:30 -0000
-211,6 +211,9
         VAR *v;
         char buf[16];

+ if (!nlistread)
+ (void)donlist();
+
         v = ve->var;
         flag = kp->p_flag;
         cp = buf;