don't list INBOX twice for virtual users
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -203,7 +203,8 @@ list_file (const char *cwd, const char *ref, const char *pattern, | ... | @@ -203,7 +203,8 @@ list_file (const char *cwd, const char *ref, const char *pattern, |
203 | /* Skip "", ".", and "..". "" is returned by at least one buggy | 203 | /* Skip "", ".", and "..". "" is returned by at least one buggy |
204 | implementation: Solaris 2.4 readdir on NFS filesystems. */ | 204 | implementation: Solaris 2.4 readdir on NFS filesystems. */ |
205 | char const *entry = dp->d_name; | 205 | char const *entry = dp->d_name; |
206 | if (entry[entry[0] != '.' ? 0 : entry[1] != '.' ? 1 : 2] != '\0') | 206 | if (entry[entry[0] != '.' ? 0 : entry[1] != '.' ? 1 : 2] != '\0' && |
207 | !(is_virtual && !strcmp (entry, "INBOX") && !strcmp(cwd, homedir))) | ||
207 | { | 208 | { |
208 | int status = match (entry, pattern, delim); | 209 | int status = match (entry, pattern, delim); |
209 | if (status) | 210 | if (status) | ... | ... |
-
Please register or sign in to post a comment