diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-07-03 10:07:04 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-07-03 10:07:04 +0000 |
commit | 9e48045e45df7e3e205575a4eb3dc39d634b05aa (patch) | |
tree | e8f993dffc34380fbcc54cc858c81da594bdb95b /procps/top.c | |
parent | c48d49ad988a4163cff7f38ee4bd1f9886d0ed11 (diff) | |
download | busybox-w32-9e48045e45df7e3e205575a4eb3dc39d634b05aa.tar.gz busybox-w32-9e48045e45df7e3e205575a4eb3dc39d634b05aa.tar.bz2 busybox-w32-9e48045e45df7e3e205575a4eb3dc39d634b05aa.zip |
Patch from Russell Coker:
I've attached my latest SE Linux patch for busybox against the latest CVS
version of busybox.
Diffstat (limited to 'procps/top.c')
-rw-r--r-- | procps/top.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/procps/top.c b/procps/top.c index b70a42a72..2e1bd3286 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -501,7 +501,11 @@ int top_main(int argc, char **argv) | |||
501 | /* read process IDs & status for all the processes */ | 501 | /* read process IDs & status for all the processes */ |
502 | procps_status_t * p; | 502 | procps_status_t * p; |
503 | 503 | ||
504 | #ifdef CONFIG_SELINUX | ||
505 | while ((p = procps_scan(0, 0, NULL) ) != 0) { | ||
506 | #else | ||
504 | while ((p = procps_scan(0)) != 0) { | 507 | while ((p = procps_scan(0)) != 0) { |
508 | #endif | ||
505 | int n = ntop; | 509 | int n = ntop; |
506 | 510 | ||
507 | top = xrealloc(top, (++ntop)*sizeof(procps_status_t)); | 511 | top = xrealloc(top, (++ntop)*sizeof(procps_status_t)); |