Commit 6887a60
committed
fix(cli): handle EACCES gracefully in checkMode during permission scan
When the config directory lacks execute permission, stat on child files
(db, wal, shm) fails with EACCES instead of returning mode bits. Treat
EACCES like ENOENT (skip the file) since the directory permission check
will catch the root cause.1 parent 587d8fd commit 6887a60
1 file changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | | - | |
76 | | - | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
0 commit comments