X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f From: Andris Pavenis To: djgpp-workers AT delorie DOT com Subject: [PATCH] Bugfix for DJGPP port of BASH-2.0.5b Date: Mon, 6 Sep 2004 15:54:17 +0300 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409061554.20299.pavenis@latnet.lv> Reply-To: djgpp-workers AT delorie DOT com Tried to figure out source of problems running several configure scripts under bash-2.0.5b (binary archive bsh205bb.zip from clio.rice.edu, also my own build from bsh205bs.zip taken from the same place). Tracked down this to a bug in dospath.c from bsh205bs.zip. A fix included below. I could upload source and binary archives if needed. Also one problem with share/config.site is fixed (defaults PATH_SEPARATOR to ; when environment variable is missing). Built and tested on WinXP Pro only. Andris --- bash-2.05b/dospath.c~1 2003-01-03 13:44:22.000000000 +0000 +++ bash-2.05b/dospath.c 2004-09-02 11:12:16.000000000 +0000 @@ -410,10 +410,8 @@ encode_drive_letter (char *buffer, const if (path_separator == ':') { strcpy (buffer, "/dev/"); - buffer[5]; - buffer[6] = letter; -// buffer[7] = '/'; - buffer[7] = '\0'; + buffer[5] = letter; + buffer[6] = '\0'; } else {