Mercurial > hg > xemacs-beta
comparison netinstall/postinstall.cc @ 452:3d3049ae1304 r21-2-41
Import from CVS: tag r21-2-41
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:40:21 +0200 |
parents | 3078fd1074e8 |
children |
comparison
equal
deleted
inserted
replaced
451:8ad70c5cd5d7 | 452:3d3049ae1304 |
---|---|
100 { | 100 { |
101 int issystem; | 101 int issystem; |
102 next_dialog = 0; | 102 next_dialog = 0; |
103 char* cygroot = find_cygwin_root (&issystem); | 103 char* cygroot = find_cygwin_root (&issystem); |
104 int i; | 104 int i; |
105 for (i=0; shells[i]; i++) | 105 |
106 sh = 0; | |
107 | |
108 if (cygroot) | |
106 { | 109 { |
107 sh = backslash (concat (cygroot, shells[i], 0)); | 110 for (i=0; shells[i]; i++) |
108 if (_access (sh, 0) == 0) | 111 { |
109 break; | 112 sh = backslash (concat (cygroot, shells[i], 0)); |
110 free (sh); | 113 if (_access (sh, 0) == 0) |
111 sh = 0; | 114 break; |
115 free (sh); | |
116 sh = 0; | |
117 } | |
112 } | 118 } |
113 | 119 |
114 char old_path[_MAX_PATH]; | 120 char old_path[_MAX_PATH]; |
115 GetEnvironmentVariable ("PATH", old_path, sizeof (old_path)); | 121 GetEnvironmentVariable ("PATH", old_path, sizeof (old_path)); |
116 #if 0 | 122 #if 0 |