Commit 6a30e6d6 authored by Richard M. Stallman's avatar Richard M. Stallman

(decode_env_path): Ensure path elements use proper directory separator.

parent 111c4138
......@@ -1576,6 +1576,20 @@ decode_env_path (evarname, defalt)
path = 0;
if (!path)
path = defalt;
#ifdef DOS_NT
/* Ensure values from the environment use the proper directory separator. */
if (path)
{
p = alloca (strlen (path) + 1);
strcpy (p, path);
path = p;
if ('/' == DIRECTORY_SEP)
dostounix_filename (path);
else
unixtodos_filename (path);
}
#endif
lpath = Qnil;
while (1)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment