diff options
author | Warner Losh <imp@FreeBSD.org> | 2024-02-19 16:48:05 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2024-02-19 16:50:04 +0000 |
commit | ef75877fc2d93199aab2b509089136c433af1f20 (patch) | |
tree | 0aa0e32b5858e121f8a36f7ecb849186a2ea5938 /bin/ls | |
parent | bcaa0b4c2bab2866d5ee11c9eb8900a70bdb21e1 (diff) | |
download | src-ef75877fc2d93199aab2b509089136c433af1f20.tar.gz src-ef75877fc2d93199aab2b509089136c433af1f20.zip |
ls: Fix -v and associated test
The cleanup of d854370fa86b7 had a cut and paste error (so f_verssort
was set to 1 and then to 0 rather thame f_timesort being set to 0).
Fixes: d854370fa86b7
Sponsored by: Netflix
Diffstat (limited to 'bin/ls')
-rw-r--r-- | bin/ls/ls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ls/ls.c b/bin/ls/ls.c index 7ebcc5383863..b5e3578f27bb 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -327,7 +327,7 @@ main(int argc, char *argv[]) case 'v': f_verssort = 1; f_sizesort = 0; - f_verssort = 0; + f_timesort = 0; break; /* Other flags. Please keep alphabetic. */ case ',': @@ -566,6 +566,7 @@ main(int argc, char *argv[]) blocksize /= 512; } } + /* Select a sort function. */ if (f_reversesort) { if (f_sizesort) |