Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-05-14 20:07:26 +0400
committerCorinna Vinschen <corinna@vinschen.de>2002-05-14 20:07:26 +0400
commit5588e287656755ccf77f8939470c3fde41b7a1d7 (patch)
tree22cc87405247040561ea8976e1664b5a64ae4779 /winsup/utils
parentef48a2cad370411ca269007026e400ba5a7abde2 (diff)
* cygpath.cc (get_short_name): Fix error checking.
Diffstat (limited to 'winsup/utils')
-rw-r--r--winsup/utils/ChangeLog4
-rw-r--r--winsup/utils/cygpath.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 42f5f0cd3..a6a15fc41 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-14 Mark Blackburn <marklist@fangorn.ca>
+
+ * cygpath.cc (get_short_name): Fix error checking.
+
2002-05-13 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
* kill.cc (prog_name) New global variable.
diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc
index 1d8215df2..1536ecedc 100644
--- a/winsup/utils/cygpath.cc
+++ b/winsup/utils/cygpath.cc
@@ -90,7 +90,7 @@ get_short_paths (char *path)
if (ptr)
*ptr++ = 0;
len = GetShortPathName (next, NULL, 0);
- if (len == ERROR_INVALID_PARAMETER)
+ if (len ==0 && GetLastError () == ERROR_INVALID_PARAMETER)
{
fprintf (stderr, "%s: cannot create short name of %s\n", prog_name,
next);