X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fbio%2Fserv_bio.c;fp=citadel%2Fmodules%2Fbio%2Fserv_bio.c;h=ac135cc2272c084baa4b6d2e2e42e53ac4227e14;hb=a0eb4609b896a62f0cf9ebf15f4b6228bda4ed32;hp=e98131361f70598fd3c889dfc9c8051af62e0d3c;hpb=78973c865ae490e099e303568a537233b8b9b6d9;p=citadel.git diff --git a/citadel/modules/bio/serv_bio.c b/citadel/modules/bio/serv_bio.c index e98131361..ac135cc22 100644 --- a/citadel/modules/bio/serv_bio.c +++ b/citadel/modules/bio/serv_bio.c @@ -111,6 +111,7 @@ void cmd_lbio(char *cmdbuf) return; } dont_resolve_uids = *cmdbuf == '1'; + cprintf("%d\n", LISTING_FOLLOWS); while ((readdir_r(filedir, d, &filedir_entry) == 0) && (filedir_entry != NULL)) { @@ -119,6 +120,10 @@ void cmd_lbio(char *cmdbuf) #else d_namelen = strlen(filedir_entry->d_name); #endif + if (((d_namelen == 1) && (filedir_entry->d_name[0] == '.')) || + ((d_namelen == 2) && (filedir_entry->d_name[0] == '.') && (filedir_entry->d_name[1] == '.'))) + continue; + if (dont_resolve_uids) { filedir_entry->d_name[d_namelen++] = '\n'; filedir_entry->d_name[d_namelen] = '\0';