]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - tools/src/tools/configtool/standalone/common/cdl_exec.cxx
Starterkit 5 Release 1.5 Bugfix
[karo-tx-redboot.git] / tools / src / tools / configtool / standalone / common / cdl_exec.cxx
index 4dc1d461e4f49d470c6836b231ec9bd865673763..bb00d2b24efd4a37bb7e2918dcf1eaa788d87019 100644 (file)
@@ -2,7 +2,6 @@
 //                                                                          
 // ----------------------------------------------------------------------------
 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-// Copyright (C) 2003 John Dallaway
 //
 // This program is part of the eCos host tools.
 //
@@ -43,6 +42,7 @@
 #include <direct.h> /* for getcwd() */
 #else
 #include <unistd.h> /* for getcwd() */
+#include <limits.h> /* for PATH_MAX */
 #endif
 #ifdef __CYGWIN__
 #include <windows.h>
@@ -478,13 +478,13 @@ cdl_exec::cmd_tree ()
             status = true;
 #ifdef __CYGWIN__
             char buf[100];
-            strcpy(buf, "mount.exe -f -t -u x: /ecos-x");
+            strcpy(buf, "mount.exe -f x: /ecos-x");
             //printf("Cwd_win32: %s\n", cwd_win32);
 
             if ( cwd_win32[1] == ':' )
             {
-                buf[19] = tolower(cwd_win32[0]);
-                buf[28] = tolower(cwd_win32[0]);
+                buf[13] = cwd_win32[0];
+                buf[22] = cwd_win32[0];
                 system(buf);
             }
 
@@ -492,8 +492,8 @@ cdl_exec::cmd_tree ()
 
             if ( repository[1] == ':' )
             {
-                buf[19] = tolower(repository[0]);
-                buf[28] = tolower(repository[0]);
+                buf[13] = repository[0];
+                buf[22] = repository[0];
                 system(buf);
             }
             if ( !install_prefix.empty() )
@@ -501,8 +501,8 @@ cdl_exec::cmd_tree ()
                 //printf("Install prefix: %s\n", install_prefix.c_str());
                 if ( install_prefix[1] == ':' )
                 {
-                    buf[19] = tolower(install_prefix[0]);
-                    buf[28] = tolower(install_prefix[0]);
+                    buf[13] = install_prefix[0];
+                    buf[22] = install_prefix[0];
                     system(buf);
                 }
             }