summaryrefslogtreecommitdiffstats
path: root/bin/ls/print.c
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2001-11-26 22:21:15 +0000
committergreen <green@FreeBSD.org>2001-11-26 22:21:15 +0000
commitd741ed6f56790f6d4459cd3edc5ca52989829373 (patch)
treec1032133ec49d0a5bd94f26101cdf04f6159d448 /bin/ls/print.c
parentd60fa5f434d39572b6ea9de4953a228e3b87d41d (diff)
downloadFreeBSD-src-d741ed6f56790f6d4459cd3edc5ca52989829373.zip
FreeBSD-src-d741ed6f56790f6d4459cd3edc5ca52989829373.tar.gz
Add LOMAC options (the "Z" flag in both cases) to display extra information
in ls(1) and ps(1). Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'bin/ls/print.c')
-rw-r--r--bin/ls/print.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ls/print.c b/bin/ls/print.c
index 6b410a3..dd586cc 100644
--- a/bin/ls/print.c
+++ b/bin/ls/print.c
@@ -159,6 +159,8 @@ printlong(dp)
np->group);
if (f_flags)
(void)printf("%-*s ", dp->s_flags, np->flags);
+ if (f_lomac)
+ (void)printf("%-*s ", dp->s_lattr, np->lattr);
if (S_ISCHR(sp->st_mode) || S_ISBLK(sp->st_mode))
if (minor(sp->st_rdev) > 255 || minor(sp->st_rdev) < 0)
(void)printf("%3d, 0x%08x ",
OpenPOWER on IntegriCloud