Commit 7729fbf
Fix directory listing for /dev subdirectories
read_driver_parent_directory() was generating paths without a leading
'/' (e.g. "dmgpio8/") while DMVFS passes paths with a leading '/'
(e.g. "/dmgpio8"). This caused all path comparisons in is_directory()
and related functions to fail, resulting in:
dmdevfs: [ERROR] Directory not found: /dmgpio8
dmdevfs: [ERROR] File not found: /dmgpio8
Fix:
- read_driver_parent_directory: add leading '/' to non-root parent
paths ("/%s%u/" and "/%sx/" instead of "%s%u/" and "%sx/")
- read_next_subdir_name: when listing from root '/', skip the leading
'/' now present in full_path before extracting the next component
Co-authored-by: JohnAmadis <17320783+JohnAmadis@users.noreply.github.com>1 parent 9670163 commit 7729fbf
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
1165 | | - | |
| 1164 | + | |
| 1165 | + | |
1166 | 1166 | | |
1167 | 1167 | | |
1168 | 1168 | | |
1169 | 1169 | | |
1170 | | - | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
| |||
1193 | 1193 | | |
1194 | 1194 | | |
1195 | 1195 | | |
1196 | | - | |
1197 | | - | |
| 1196 | + | |
| 1197 | + | |
1198 | 1198 | | |
1199 | 1199 | | |
1200 | 1200 | | |
| |||
1327 | 1327 | | |
1328 | 1328 | | |
1329 | 1329 | | |
1330 | | - | |
| 1330 | + | |
1331 | 1331 | | |
1332 | 1332 | | |
1333 | 1333 | | |
1334 | | - | |
| 1334 | + | |
1335 | 1335 | | |
1336 | 1336 | | |
1337 | 1337 | | |
| |||
0 commit comments