commit | 11d6079ed3cb067dc66a795a1c7565c13afd5a00 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Sat Oct 31 12:15:25 2015 -0700 |
committer | Rob Landley <rob@landley.net> | Mon Nov 02 01:34:11 2015 -0600 |
tree | 82a93c8cdc80f69c86cb43e904b683121690166c | |
parent | 71617b9ea00ed774c202346c9bf8ac2bf80dfc2e [diff] [blame] |
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".
diff --git a/lib/lib.c b/lib/lib.c index d9bea89..aa7b1c3 100644 --- a/lib/lib.c +++ b/lib/lib.c
@@ -342,6 +342,14 @@ return try; } +char *chomp(char *s) +{ + char *p = strrchr(s, '\n'); + + if (p) *p = 0; + return s; +} + int unescape(char c) { char *from = "\\abefnrtv", *to = "\\\a\b\033\f\n\r\t\v";