summaryrefslogtreecommitdiffstats
path: root/winsup/utils/cygpath.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/utils/cygpath.cc')
-rw-r--r--winsup/utils/cygpath.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc
index 2ba54a185..dbaaae0d8 100644
--- a/winsup/utils/cygpath.cc
+++ b/winsup/utils/cygpath.cc
@@ -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