Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[BugFix] Hosted incoming directory component leading slashes

leading slashes in directory components to path_append
makes a path with a leading slash absolute and discards
the basepath

Change-Id: I65253080c0ca4278b559894104ab25ab199a3100

+2 -1
+2 -1
firmware/target/hosted/filesystem-app.c
··· 210 210 if (!strncmp(HOME_DIR, dir, HOME_DIR_LEN)) 211 211 { 212 212 const char *p = dir + HOME_DIR_LEN; 213 - while (*p == '/') p++; 213 + while (*p == PATH_SEPCH) p++; /* strip leading slashes */ 214 214 path_append(buf, rbhome, p, bufsize); 215 215 dir = buf; 216 216 } ··· 232 232 #endif 233 233 ) 234 234 { 235 + while (*dir == PATH_SEPCH) dir++; /* strip leading slashes */ 235 236 path_append(buf, PIVOT_ROOT, dir, bufsize); 236 237 dir = buf; 237 238 }