| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| Sender: | cygwin-apps-owner AT sourceware DOT cygnus DOT com |
| List-Subscribe: | <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin-apps/> |
| List-Post: | <mailto:cygwin-apps AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs> |
| Delivered-To: | mailing list cygwin-apps AT sources DOT redhat DOT com |
| Message-ID: | <001501c0a53e$82f00fa0$250ddb18@fision> |
| From: | "Jason Gouger" <cygwin AT jason-gouger DOT com> |
| To: | <cygwin-apps AT sourceware DOT cygnus DOT com> |
| Subject: | [PATCH] bash 2.04 |
| Date: | Sun, 4 Mar 2001 22:35:46 -0800 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 5.50.4133.2400 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
This is a multi-part message in MIME format.
------=_NextPart_000_0012_01C0A4FB.745D44F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Attached is a small patch to bash 2.04 which corrects the
general.c(full_pathname) function to properly check for a win32 absolute
pathname, prior to appending the current working directory.
The bug can be seen by trying the following:
bash$ cd /tmp
bash$ exec C:/cygwin/bin/bash.exe
It will error out with a cannot execute: No such file or directory error.
------=_NextPart_000_0012_01C0A4FB.745D44F0
Content-Type: text/plain;
name="general_changelog.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="general_changelog.txt"
2001-03-04 Jason Gouger <cygwin AT jason-gouger DOT com>
* general.c (full_pathname): add check for windows style pathname
------=_NextPart_000_0012_01C0A4FB.745D44F0
Content-Type: text/plain;
name="general_diff.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="general_diff.txt"
--- general.c Wed Oct 11 05:15:56 2000=0A=
+++ general.c.fixed Sun Mar 4 21:57:30 2001=0A=
@@ -641,6 +641,12 @@=0A=
if ((*file =3D=3D '/') && absolute_pathname (file))=0A=
return (file);=0A=
=0A=
+#ifdef __CYGWIN__=0A=
+ if (*file && file[1] =3D=3D ':' && (file[2] =3D=3D '/' || file[2] =
=3D=3D '\\') &&=0A=
+ ((*file >=3D 'a' && *file <=3D 'z') || (*file >=3D 'A' && *file =
<=3D 'Z')))=0A=
+ return (file);=0A=
+#endif /* __CYGWIN__ */=0A=
+=0A=
ret =3D sh_makepath ((char *)NULL, file, (MP_DOCWD|MP_RMDOT));=0A=
free (file);=0A=
=0A=
------=_NextPart_000_0012_01C0A4FB.745D44F0--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |