diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-01-15 14:07:42 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-01-15 14:07:42 +0000 |
commit | 7b5c105b618cf7863ecc3e99bc73de7580fe5c14 (patch) | |
tree | 3e21b31c5d1c1a44ba59960c1dd4c64f7480b1ab | |
parent | f062174ba583c40e721fd0e40f3246e760b0993f (diff) | |
download | newlib-7b5c105b618cf7863ecc3e99bc73de7580fe5c14.zip newlib-7b5c105b618cf7863ecc3e99bc73de7580fe5c14.tar.gz newlib-7b5c105b618cf7863ecc3e99bc73de7580fe5c14.tar.bz2 |
* cygpath.cc (doit): Empty file ignored using option -i.
-rw-r--r-- | winsup/utils/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/utils/cygpath.cc | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index cc114c8..0c878e1 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,7 @@ +2002-01-15 Joerg Schaible <joerg.schaible@gmx.de> + + * cygpath.cc (doit): Empty file ignored using option -i. + 2002-01-15 Mark Bradshaw <bradshaw@crosswalk.com> * mkpasswd.c (print_win_error): Add a new function. diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc index 2ba54a1..dbaaae0 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 |