mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
realpath fixes
This commit is contained in:
parent
5917ca0cda
commit
a6675697be
@ -434,6 +434,9 @@ char *os_realpath(const char *pathname, char *resolved_path) {
|
||||
ptr++;
|
||||
}
|
||||
|
||||
while(strlen(resolved_path) && (resolved_path[strlen(resolved_path)-1] == '\\'))
|
||||
resolved_path[strlen(resolved_path)-1] = '\0';
|
||||
|
||||
return &resolved_path[0];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user