summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/cat/Makefile.depend2
-rw-r--r--bin/ls/Makefile.depend1
-rw-r--r--bin/ls/print.c6
3 files changed, 5 insertions, 4 deletions
diff --git a/bin/cat/Makefile.depend b/bin/cat/Makefile.depend
index ec7b59b..3646e2e 100644
--- a/bin/cat/Makefile.depend
+++ b/bin/cat/Makefile.depend
@@ -1,4 +1,4 @@
-# $FreeBSD$
+# $FreeBSD$
# Autogenerated - do NOT edit!
DIRDEPS = \
diff --git a/bin/ls/Makefile.depend b/bin/ls/Makefile.depend
index e36f602..6151c71 100644
--- a/bin/ls/Makefile.depend
+++ b/bin/ls/Makefile.depend
@@ -10,6 +10,7 @@ DIRDEPS = \
lib/libc \
lib/libcompiler_rt \
lib/libutil \
+ lib/libxo \
lib/ncurses/ncursesw \
diff --git a/bin/ls/print.c b/bin/ls/print.c
index c96fe7c..2d1425d 100644
--- a/bin/ls/print.c
+++ b/bin/ls/print.c
@@ -178,7 +178,7 @@ printlong(const DISPLAY *dp)
sp = p->fts_statp;
name = getname(p->fts_name);
if (name)
- xo_emit("{ke:name}", name);
+ xo_emit("{ke:name/%hs}", name);
if (f_inode)
xo_emit("{:inode/%*ju} ",
dp->s_inode, (uintmax_t)sp->st_ino);
@@ -214,7 +214,7 @@ printlong(const DISPLAY *dp)
#endif
if (name) {
- xo_emit("{dk:name}", name);
+ xo_emit("{dk:name/%hs}", name);
free(name);
}
@@ -425,7 +425,7 @@ printtime(const char *field, time_t ftime)
format = d_first ? "%e %b %Y" : "%b %e %Y";
strftime(longstring, sizeof(longstring), format, localtime(&ftime));
- snprintf(fmt, sizeof(fmt), "{:%s/%%s} ", field);
+ snprintf(fmt, sizeof(fmt), "{:%s/%%hs} ", field);
xo_attr("value", "%ld", (long) ftime);
xo_emit(fmt, longstring);
}
OpenPOWER on IntegriCloud