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:
authorChristopher Faylor <me@cgf.cx>2001-06-11 19:20:49 +0400
committerChristopher Faylor <me@cgf.cx>2001-06-11 19:20:49 +0400
commitf375b8d9f413dc386e52c860a55db74b8095e72a (patch)
tree57bcd159eda0d49fb04c72047fa2a996c7378380 /winsup/cygwin/path.cc
parentfc633b63a29100f730d1a69740d8e6c7f54a1508 (diff)
* path.cc (chdir): Fix call to path_conv constructor so that it REALLY doesn't
check for the null/non-empty path.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 3bcea3562..cffbecebd 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -3017,9 +3017,9 @@ chdir (const char *in_dir)
return -1;
}
- /* Convert path. Third argument ensures that we don't check for NULL/empty/invalid
+ /* Convert path. First argument ensures that we don't check for NULL/empty/invalid
again. */
- path_conv path (dir, PC_FULL | PC_SYM_FOLLOW, NULL);
+ path_conv path (PC_NONULLEMPTY, dir, PC_FULL | PC_SYM_FOLLOW);
if (path.error)
{
set_errno (path.error);