This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
RE: A few fixes to winsup/utils/cygpath.cc
- From: "Schaible, Jorg" <Joerg dot Schaible at gft dot com>
- To: Corinna Vinschen <cygwin-patches at cygwin dot com>
- Date: Tue, 15 Jan 2002 15:01:20 +0100
- Subject: RE: A few fixes to winsup/utils/cygpath.cc
>That is a reversed patch either. That should help:
<sigh>
Sorry again.
==========================
2002-01-14 Joerg Schaible <joerg.schaible@gmx.de>
* cygpath.cc (doit): Empty file ignored using option -i
==========================
--- cygpath.cc-orig Mon Jan 14 08:16:22 2002
+++ cygpath.cc Mon Jan 14 08:28:04 2002
@@ -161,8 +161,13 @@ doit (char *filename)
len = strlen (filename) + 100;
if (len == 100)
{
- fprintf(stderr, "%s: can't convert empty path\n", prog_name);
- exit (1);
+ if (!ignore_flag)
+ {
+ fprintf(stderr, "%s: can't convert empty path\n", prog_name);
+ exit (1);
+ }
+ else
+ exit (0);
}
}
else
==========================
-- Jorg