]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(decode_switches) [-u]: Fix bug whereby -u had no effect
authorJim Meyering <jim@meyering.net>
Sat, 10 Jan 1998 12:07:50 +0000 (12:07 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 10 Jan 1998 12:07:50 +0000 (12:07 +0000)
without -l or -t.  Now, -u (like -c) implies --sort=time.
Suggestion from Andreas Schwab.

src/ls.c

index 561d52a16ab8f9b507995cdf822971ae3db99db8..d2ee0a75f403b33f8413101109b4a20a3f255214 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -1020,6 +1020,7 @@ decode_switches (int argc, char **argv)
          break;
 
        case 'u':
+         sort_type = sort_time;
          time_type = time_atime;
          break;