mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* path.cc (chdir): Fix call to path_conv constructor so that it REALLY doesn't
check for the null/non-empty path.
This commit is contained in:
parent
fc633b63a2
commit
f375b8d9f4
@ -1,3 +1,8 @@
|
||||
Mon Jun 11 11:18:56 2001 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
* 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 <cgf@cygnus.com>
|
||||
|
||||
* path.cc (path_conv::update_fs_info): Don't consider remote drives to
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user