Add more file types to list

This commit is contained in:
Michael Theall 2016-01-25 19:10:53 -06:00
parent 717e4cfdc0
commit c2c82919a3

View File

@ -1885,8 +1885,13 @@ list_transfer(ftp_session_t *session)
session->buffersize = session->buffersize =
sprintf(session->buffer, sprintf(session->buffer,
"%crwxrwxrwx 1 3DS 3DS %llu ", "%crwxrwxrwx 1 3DS 3DS %llu ",
S_ISDIR(st.st_mode) ? 'd' : S_ISREG(st.st_mode) ? '-' :
S_ISLNK(st.st_mode) ? 'l' : '-', 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); (unsigned long long)st.st_size);
t_mtime = mtime; t_mtime = mtime;