commit 6470594ec92ba41f32f1e7932d0a4d23382c50d9 from: Omar Polo date: Sun Jan 16 17:37:10 2022 UTC print a / after directory entries commit - 1f5fb8436f68dec8b5e687b3b7f6b9289f7cb8f2 commit + 6470594ec92ba41f32f1e7932d0a4d23382c50d9 blob - 179931aa2c9e18917d15c323096871c0570ae3e6 blob + af109599289d7c0999782727e900bc126bf7f7b2 --- kamiftp/ftp.c +++ kamiftp/ftp.c @@ -1268,7 +1268,8 @@ cmd_ls(int argc, const char **argv) printf("%s", pp_perm(st.mode >> 6)); printf("%s", pp_perm(st.mode >> 3)); printf("%s", pp_perm(st.mode)); - printf(" %8s %s\n", fmt, st.name); + printf(" %8s %s%s\n", fmt, st.name, + st.qid.type & QTDIR ? "/" : ""); free(st.name); free(st.uid);