aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-10-31 12:15:25 -0700
committerRob Landley <rob@landley.net>2015-11-02 01:34:11 -0600
commit11d6079ed3cb067dc66a795a1c7565c13afd5a00 (patch)
tree82a93c8cdc80f69c86cb43e904b683121690166c /toys/pending
parent71617b9ea00ed774c202346c9bf8ac2bf80dfc2e (diff)
downloadtoybox-11d6079ed3cb067dc66a795a1c7565c13afd5a00.tar.gz
Add ps -Z.
As with ls, it doesn't seem like -Z should be guarded behind LSM availability. On a non-SELinux system, the label is always "unconfined".
Diffstat (limited to 'toys/pending')
-rw-r--r--toys/pending/lsof.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/toys/pending/lsof.c b/toys/pending/lsof.c
index 18013f77..0a9fc9cd 100644
--- a/toys/pending/lsof.c
+++ b/toys/pending/lsof.c
@@ -121,14 +121,6 @@ static void fill_flags(struct file_info *fi)
fclose(fp);
}
-static char *chomp(char *s)
-{
- char *p = strrchr(s, '\n');
-
- if (p) *p = 0;
- return s;
-}
-
static int scan_proc_net_file(char *path, int family, char type,
void (*fn)(char *, int, char, struct file_info *, long),
struct file_info *fi, long sought_inode)