diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-04-26 02:31:26 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-04-26 02:31:26 +0000 |
commit | c54b661d3c20e60c2092955110f58053698156e1 (patch) | |
tree | d8d585cd2163f2f8e9023a3b3947e04096664a5a /bin/ls | |
parent | 7921c3200faaec3b0fef5ee1fdad8620930b4ebd (diff) | |
download | FreeBSD-src-c54b661d3c20e60c2092955110f58053698156e1.zip FreeBSD-src-c54b661d3c20e60c2092955110f58053698156e1.tar.gz |
When mac_from_text() fails with -Z, print "-" rather than "" so that
scripts parsing ls(1) output can still count columns.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'bin/ls')
-rw-r--r-- | bin/ls/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ls/ls.c b/bin/ls/ls.c index dc22f97..9847702 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -732,7 +732,7 @@ display(FTSENT *p, FTSENT *list, int options) mac_free(label); label_out: if (labelstr == NULL) - labelstr = strdup(""); + labelstr = strdup("-"); labelstrlen = strlen(labelstr); if (labelstrlen > maxlabelstr) maxlabelstr = labelstrlen; |