diff options
author | Christopher Faylor <me@cgf.cx> | 2001-10-14 15:49:13 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-10-14 15:49:13 +0000 |
commit | 48372ea6f139576feaccd942d7674d06abd3c396 (patch) | |
tree | 62aa2aadc0d8d93951ddd42498b12e9f7efca84b /winsup/cygwin/path.cc | |
parent | 611d92e24c092849635b8395ec97e9c7140a6324 (diff) | |
download | cygnal-48372ea6f139576feaccd942d7674d06abd3c396.tar.gz cygnal-48372ea6f139576feaccd942d7674d06abd3c396.tar.bz2 cygnal-48372ea6f139576feaccd942d7674d06abd3c396.zip |
* dtable.cc (dtable::build_fhandler_from_name): Use PC_FULL to determine path
name.
* fork.cc (fork_parent): Correct the "unable to allocate forker_finished event"
error message. It named the wrong event before.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index cb05f1a2b..59b0d59df 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -3146,22 +3146,6 @@ fchdir (int fd) } SetResourceLock (LOCK_FD_LIST, WRITE_LOCK | READ_LOCK, "fchdir"); int ret = chdir (cygheap->fdtab[fd]->get_name ()); - if (ret == 0) - { - /* The name in the fhandler is explicitely overwritten with the full path. - Otherwise fchmod() to a path originally given as a relative path could - end up in a completely different directory. Imagine: - - fd = open (".."); - fchmod(fd); - fchmod(fd); - - The 2nd fchmod should chdir to the same dir as the first call, not - to it's parent dir. */ - char posix_path[MAX_PATH]; - cygheap->fdtab.reset_unix_path_name (fd, cygheap->cwd.get (posix_path, 1, 1)); - } - ReleaseResourceLock (LOCK_FD_LIST, WRITE_LOCK | READ_LOCK, "fchdir"); syscall_printf ("%d = fchdir (%d)", ret, fd); return ret; |