Commit 4eef6173 4eef617307ea0f89d35b0269388b37263231783f by Jakob Kaivo

don't list INBOX twice for virtual users

1 parent 7a622985
...@@ -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)
......