summaryrefslogtreecommitdiffstats
path: root/misc/deco
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-06-08 15:20:46 +0000
committerru <ru@FreeBSD.org>2000-06-08 15:20:46 +0000
commitd98962febc0ffd0b30b5619fefcc582d1110092f (patch)
tree333ed6b46bf3e991754dcc602a91f427a960710e /misc/deco
parent0563ab7f4049f6c03e21bf31f5031675f1c6c4a2 (diff)
downloadFreeBSD-ports-d98962febc0ffd0b30b5619fefcc582d1110092f.zip
FreeBSD-ports-d98962febc0ffd0b30b5619fefcc582d1110092f.tar.gz
Do not sort directory entries when `Unsorted' is selected.
This makes output look right (the same as in `ls -f' case).
Diffstat (limited to 'misc/deco')
-rw-r--r--misc/deco/files/patch-ad12
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/deco/files/patch-ad b/misc/deco/files/patch-ad
new file mode 100644
index 0000000..7d31bcb
--- /dev/null
+++ b/misc/deco/files/patch-ad
@@ -0,0 +1,12 @@
+Index: dir.c
+@@ -358,8 +358,10 @@
+
+ d->topfile = d->curfile = 0;
+
++ if (d->sort != SORTSKIP) {
+ compdir = d;
+ qsort ((char*)d->cat, (unsigned) d->num, sizeof (d->cat[0]), compfile);
++ }
+
+ if (! dirname) {
+ /* retag files, restore curfile */
OpenPOWER on IntegriCloud