Skip to content

Commit

Permalink
Merge pull request #3472 from dscho/expand-runtime-prefix
Browse files Browse the repository at this point in the history
Re-do the path interpolation support regarding RUNTIME_PREFIX
  • Loading branch information
dscho committed Jan 20, 2022
2 parents 415db8d + 4905f16 commit 0f9a1f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions path.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,12 @@ char *interpolate_path(const char *path, int real_home)
if (skip_prefix(path, "%(prefix)/", &path))
return system_path(path);

#ifdef __MINGW32__
if (path[0] == '/') {
warning(_("encountered old-style '%s' that should be '%%(prefix)%s'"), path, path);
return system_path(path + 1);
}
#endif
if (path[0] == '~') {
const char *first_slash = strchrnul(path, '/');
const char *username = path + 1;
Expand Down

0 comments on commit 0f9a1f7

Please sign in to comment.