Pure Erlang implementation of 9p2000 protocol
filesystem fs 9p2000 erlang 9p
at master 18 lines 577 B view raw
1diff --git i/kamiftp/ftp.c w/kamiftp/ftp.c 2index f776ea7..8119db0 100644 3--- i/kamiftp/ftp.c 4+++ w/kamiftp/ftp.c 5@@ -1005,9 +1005,10 @@ print_dirent(const struct np_stat *st) 6 printf("d"); 7 else 8 printf("-"); 9- printf("%s", pp_perm(st->mode >> 6)); 10- printf("%s", pp_perm(st->mode >> 3)); 11- printf("%s", pp_perm(st->mode)); 12+ printf("%o", st->mode); 13+ // printf("%s", pp_perm(st->mode >> 6)); 14+ // printf("%s", pp_perm(st->mode >> 3)); 15+ // printf("%s", pp_perm(st->mode)); 16 printf(" %8s %12s %s%s\n", fmt, tim, st->name, 17 st->qid.type & QTDIR ? "/" : ""); 18