From f375b8d9f413dc386e52c860a55db74b8095e72a Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 11 Jun 2001 15:20:49 +0000 Subject: [PATCH] * path.cc (chdir): Fix call to path_conv constructor so that it REALLY doesn't check for the null/non-empty path. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/path.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 412ebd3cb..c977ed038 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Mon Jun 11 11:18:56 2001 Christopher Faylor + + * path.cc (chdir): Fix call to path_conv constructor so that it REALLY + doesn't check for the null/non-empty path. + Sun Jun 10 23:34:09 2001 Christopher Faylor * path.cc (path_conv::update_fs_info): Don't consider remote drives to 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);