From e1e87a72f84cb217c766c1b12e31e0e8de645468 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Thu, 14 Dec 2000 00:07:20 +0000 Subject: [PATCH] reverse time and size sort order (pointed out by tege) git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9386 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/ls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appl/ftp/ftpd/ls.c b/appl/ftp/ftpd/ls.c index 91ebeaef4..c14be45fa 100644 --- a/appl/ftp/ftpd/ls.c +++ b/appl/ftp/ftpd/ls.c @@ -304,7 +304,7 @@ compare_mtime(struct fileinfo *a, struct fileinfo *b) return 1; if(b->filename == NULL) return -1; - return a->st.st_mtime - b->st.st_mtime; + return b->st.st_mtime - a->st.st_mtime; } static int @@ -314,7 +314,7 @@ compare_size(struct fileinfo *a, struct fileinfo *b) return 1; if(b->filename == NULL) return -1; - return a->st.st_size - b->st.st_size; + return b->st.st_size - a->st.st_size; } static void