This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]