* mu-maildir: hide some innocent errors

This commit is contained in:
djcb
2012-09-15 18:03:23 +03:00
parent beb1972d61
commit 87e61b7a3e

View File

@ -291,7 +291,7 @@ dir_contains_file (const char *path, const char *file)
if (access (fullpath, F_OK) == 0)
return TRUE;
else if (G_UNLIKELY(errno != ENOENT))
else if (G_UNLIKELY(errno != ENOENT && errno != EACCES))
g_warning ("error testing for %s/%s: %s",
fullpath, file, strerror(errno));
return FALSE;
@ -515,8 +515,8 @@ process_dir (const char* path, const char* mdir,
}
dir = opendir (path);
if (G_UNLIKELY(!dir)) {
g_warning ("opendir failed %s: %s", path, strerror(errno));
if (!dir) {
g_warning ("cannot access %s: %s", path, strerror(errno));
return MU_OK;
}