aboutsummaryrefslogtreecommitdiffstats
path: root/src/msdos.c
diff options
context:
space:
mode:
authorJoakim Verona2013-02-03 00:03:44 +0100
committerJoakim Verona2013-02-03 00:03:44 +0100
commitcfefa7e817861c3fdf541becf7fbcfa00fa16858 (patch)
tree1a3ed70e7761f27ff2e882ba5148bdb3e4b62231 /src/msdos.c
parent9aa1f4ecdb156a4135c3f7f6125a2b5a40258038 (diff)
parent8ea41ea99608c7483ef5c91e230a760cf90bfb54 (diff)
downloademacs-cfefa7e817861c3fdf541becf7fbcfa00fa16858.tar.gz
emacs-cfefa7e817861c3fdf541becf7fbcfa00fa16858.zip
auto upstream
Diffstat (limited to 'src/msdos.c')
-rw-r--r--src/msdos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/msdos.c b/src/msdos.c
index 5174bc4dfcd..1b2deaf7478 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -3339,7 +3339,7 @@ void msdos_downcase_filename (unsigned char *);
3339/* Destructively turn backslashes into slashes. */ 3339/* Destructively turn backslashes into slashes. */
3340 3340
3341void 3341void
3342dostounix_filename (char *p) 3342dostounix_filename (char *p, int ignore)
3343{ 3343{
3344 msdos_downcase_filename (p); 3344 msdos_downcase_filename (p);
3345 3345
@@ -3603,7 +3603,7 @@ init_environment (int argc, char **argv, int skip_args)
3603 if (!s) s = "c:/command.com"; 3603 if (!s) s = "c:/command.com";
3604 t = alloca (strlen (s) + 1); 3604 t = alloca (strlen (s) + 1);
3605 strcpy (t, s); 3605 strcpy (t, s);
3606 dostounix_filename (t); 3606 dostounix_filename (t, 0);
3607 setenv ("SHELL", t, 0); 3607 setenv ("SHELL", t, 0);
3608 3608
3609 /* PATH is also downcased and backslashes mirrored. */ 3609 /* PATH is also downcased and backslashes mirrored. */
@@ -3613,7 +3613,7 @@ init_environment (int argc, char **argv, int skip_args)
3613 /* Current directory is always considered part of MsDos's path but it is 3613 /* Current directory is always considered part of MsDos's path but it is
3614 not normally mentioned. Now it is. */ 3614 not normally mentioned. Now it is. */
3615 strcat (strcpy (t, ".;"), s); 3615 strcat (strcpy (t, ".;"), s);
3616 dostounix_filename (t); /* Not a single file name, but this should work. */ 3616 dostounix_filename (t, 0); /* Not a single file name, but this should work. */
3617 setenv ("PATH", t, 1); 3617 setenv ("PATH", t, 1);
3618 3618
3619 /* In some sense all dos users have root privileges, so... */ 3619 /* In some sense all dos users have root privileges, so... */