From c2c82919a33f59d9625e830132efe8f63571a14a Mon Sep 17 00:00:00 2001 From: Michael Theall Date: Mon, 25 Jan 2016 19:10:53 -0600 Subject: [PATCH] Add more file types to list --- source/ftp.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/ftp.c b/source/ftp.c index 7d7e27d..0f8ae18 100644 --- a/source/ftp.c +++ b/source/ftp.c @@ -1885,8 +1885,13 @@ list_transfer(ftp_session_t *session) session->buffersize = sprintf(session->buffer, "%crwxrwxrwx 1 3DS 3DS %llu ", - S_ISDIR(st.st_mode) ? 'd' : - S_ISLNK(st.st_mode) ? 'l' : '-', + S_ISREG(st.st_mode) ? '-' : + S_ISDIR(st.st_mode) ? 'd' : + S_ISLNK(st.st_mode) ? 'l' : + S_ISCHR(st.st_mode) ? 'c' : + S_ISBLK(st.st_mode) ? 'b' : + S_ISFIFO(st.st_mode) ? 'p' : + S_ISSOCK(st.st_mode) ? 's' : '?', (unsigned long long)st.st_size); t_mtime = mtime;