]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(decode_switches): Set SORT_TYPE. Before, ls -c was sorting
authorJim Meyering <jim@meyering.net>
Sat, 5 Aug 1995 03:09:41 +0000 (03:09 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 5 Aug 1995 03:09:41 +0000 (03:09 +0000)
by name, rather than change time.  Reported by Ken Estes
(m-ke0082@sparky.cs.nyu.edu).

src/ls.c

index 01b1e9b606497e373876917afc2c4f3bc66b8a22..d3c0e8b545babcc503101801f693b73963ef2e54 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -806,6 +806,7 @@ decode_switches (argc, argv)
 
        case 'c':
          time_type = time_ctime;
+         sort_type = sort_time;
          break;
 
        case 'd':