summaryrefslogtreecommitdiff
path: root/cras/src/common/cras_file_wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'cras/src/common/cras_file_wait.c')
-rw-r--r--cras/src/common/cras_file_wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cras/src/common/cras_file_wait.c b/cras/src/common/cras_file_wait.c
index 9ad94486..190a5e10 100644
--- a/cras/src/common/cras_file_wait.c
+++ b/cras/src/common/cras_file_wait.c
@@ -190,7 +190,7 @@ int cras_file_wait_dispatch(struct cras_file_wait *file_wait)
strcpy(file_wait->watch_dir, file_wait->file_path);
watch_dir_len = file_wait->file_path_len;
- while (rc == -ENOENT) {
+ while (rc == -ENOENT || rc == -EACCES) {
strcpy(file_wait->watch_path, file_wait->watch_dir);
watch_path_len = watch_dir_len;