FS#13519: multivolume: Ensure absolute paths get drive designation

Change-Id: I8419af670ca101b11bba29d9fd577f21fa22fd42
This commit is contained in:
Dana Conrad 2024-12-05 01:54:01 +00:00 committed by Solomon Peachy
parent aeb4b6c34a
commit 7d3cc24dec
2 changed files with 36 additions and 5 deletions

View file

@ -70,7 +70,7 @@
flushed to disk when required.
*/
//#define LOGF_ENABLE
// #define LOGF_ENABLE
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@ -592,6 +592,8 @@ static ssize_t format_track_path(char *dest, char *src, int buf_length,
dlen = -1u;
}
logf("dir: %s", dir);
len = path_append_ex(dest, dir, dlen, src, buf_length);
if (len >= (size_t)buf_length)
return -1; /* buffer too small */