diff options
Diffstat (limited to 'file_cmds/ls')
-rw-r--r-- | file_cmds/ls/Makefile | 10 | ||||
-rw-r--r-- | file_cmds/ls/ls.c | 5 |
2 files changed, 14 insertions, 1 deletions
diff --git a/file_cmds/ls/Makefile b/file_cmds/ls/Makefile new file mode 100644 index 0000000..2872cbe --- /dev/null +++ b/file_cmds/ls/Makefile @@ -0,0 +1,10 @@ +PROG= ls +SRCS= cmp.c ls.c print.c util.c + +CFLAGS+=-DCOLORLS + +LDADD=-lutil -lncursesw + +BINDIR=/bin + +.include <bsd.prog.mk> diff --git a/file_cmds/ls/ls.c b/file_cmds/ls/ls.c index e079333..0a6b1a0 100644 --- a/file_cmds/ls/ls.c +++ b/file_cmds/ls/ls.c @@ -75,7 +75,6 @@ __RCSID("$FreeBSD: src/bin/ls/ls.c,v 1.66 2002/09/21 01:28:36 wollman Exp $"); #include <sys/param.h> #include <get_compat.h> #include <sys/sysctl.h> -#include <System/sys/fsctl.h> #else #define COMPAT_MODE(a,b) (1) #endif /* __APPLE__ */ @@ -562,10 +561,12 @@ traverse(int argc, char *argv[], int options) break; } +#ifdef SF_DATALESS if (IS_DATALESS(p->fts_statp)) { fts_set(ftsp, p, FTS_SKIP); break; } +#endif /* * If already output something, put out a newline as @@ -858,9 +859,11 @@ display(FTSENT *p, FTSENT *list) } else { np->mode_suffix = ' '; } +#ifdef SF_DATALESS if (IS_DATALESS(sp)) { np->mode_suffix = '%'; } +#endif if (!f_acl) { acl_free(np->acl); np->acl = NULL; |