* mu-maildir: hide some innocent errors
This commit is contained in:
@ -291,7 +291,7 @@ dir_contains_file (const char *path, const char *file)
|
|||||||
|
|
||||||
if (access (fullpath, F_OK) == 0)
|
if (access (fullpath, F_OK) == 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
else if (G_UNLIKELY(errno != ENOENT))
|
else if (G_UNLIKELY(errno != ENOENT && errno != EACCES))
|
||||||
g_warning ("error testing for %s/%s: %s",
|
g_warning ("error testing for %s/%s: %s",
|
||||||
fullpath, file, strerror(errno));
|
fullpath, file, strerror(errno));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -515,8 +515,8 @@ process_dir (const char* path, const char* mdir,
|
|||||||
}
|
}
|
||||||
|
|
||||||
dir = opendir (path);
|
dir = opendir (path);
|
||||||
if (G_UNLIKELY(!dir)) {
|
if (!dir) {
|
||||||
g_warning ("opendir failed %s: %s", path, strerror(errno));
|
g_warning ("cannot access %s: %s", path, strerror(errno));
|
||||||
return MU_OK;
|
return MU_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user