* path.cc (chdir): Minor cleanup.
This commit is contained in:
parent
12a2ef4462
commit
4863867ab9
|
@ -1,3 +1,7 @@
|
||||||
|
2002-06-12 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* path.cc (chdir): Minor cleanup.
|
||||||
|
|
||||||
2002-06-12 Christopher Faylor <cgf@redhat.com>
|
2002-06-12 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* environ.cc (build_env): Correctly fill out windows environment block
|
* environ.cc (build_env): Correctly fill out windows environment block
|
||||||
|
|
|
@ -3240,7 +3240,7 @@ chdir (const char *in_dir)
|
||||||
res = 0;
|
res = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If res < 0, we didn't change to a new directory.
|
/* If res != 0, we didn't change to a new directory.
|
||||||
Otherwise, set the current windows and posix directory cache from input.
|
Otherwise, set the current windows and posix directory cache from input.
|
||||||
If the specified directory is a MS-DOS style directory or if the directory
|
If the specified directory is a MS-DOS style directory or if the directory
|
||||||
was symlinked, convert the MS-DOS path back to posix style. Otherwise just
|
was symlinked, convert the MS-DOS path back to posix style. Otherwise just
|
||||||
|
@ -3250,7 +3250,7 @@ chdir (const char *in_dir)
|
||||||
do when we detect a symlink? Should we instead rebuild the posix path from
|
do when we detect a symlink? Should we instead rebuild the posix path from
|
||||||
the input by traversing links? This would be an expensive operation but
|
the input by traversing links? This would be an expensive operation but
|
||||||
we'll see if Cygwin mailing list users whine about the current behavior. */
|
we'll see if Cygwin mailing list users whine about the current behavior. */
|
||||||
if (res == -1)
|
if (res)
|
||||||
__seterrno ();
|
__seterrno ();
|
||||||
else if ((!path.has_symlinks () && strpbrk (dir, ":\\") == NULL
|
else if ((!path.has_symlinks () && strpbrk (dir, ":\\") == NULL
|
||||||
&& pcheck_case == PCHECK_RELAXED) || isvirtual_dev (devn))
|
&& pcheck_case == PCHECK_RELAXED) || isvirtual_dev (devn))
|
||||||
|
|
Loading…
Reference in New Issue