aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-01 06:32:13 +0000
committerRichard M. Stallman1997-07-01 06:32:13 +0000
commit6a30e6d6d335d0f2d726a94a9e982a20bfeace73 (patch)
treeb687798a67d53e7043abf052e5940977fbe684c7 /src
parent111c41385e3dc226850daf9152ec4c2cfe32009f (diff)
downloademacs-6a30e6d6d335d0f2d726a94a9e982a20bfeace73.tar.gz
emacs-6a30e6d6d335d0f2d726a94a9e982a20bfeace73.zip
(decode_env_path): Ensure path elements use proper directory separator.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 31a2b6995e0..e29724a38d7 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1576,6 +1576,20 @@ decode_env_path (evarname, defalt)
1576 path = 0; 1576 path = 0;
1577 if (!path) 1577 if (!path)
1578 path = defalt; 1578 path = defalt;
1579#ifdef DOS_NT
1580 /* Ensure values from the environment use the proper directory separator. */
1581 if (path)
1582 {
1583 p = alloca (strlen (path) + 1);
1584 strcpy (p, path);
1585 path = p;
1586
1587 if ('/' == DIRECTORY_SEP)
1588 dostounix_filename (path);
1589 else
1590 unixtodos_filename (path);
1591 }
1592#endif
1579 lpath = Qnil; 1593 lpath = Qnil;
1580 while (1) 1594 while (1)
1581 { 1595 {