diff options
author | Christopher Faylor <me@cgf.cx> | 2004-05-28 19:50:07 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-05-28 19:50:07 +0000 |
commit | e3778517d9c6409c9c917db83ccac20de1800a29 (patch) | |
tree | 407e958798d6f156ff0762350734b7b92cf032d8 /winsup/cygwin/syscalls.cc | |
parent | dccc3e5d2c6059410c12feb9e5d26f3176334011 (diff) | |
download | cygnal-e3778517d9c6409c9c917db83ccac20de1800a29.tar.gz cygnal-e3778517d9c6409c9c917db83ccac20de1800a29.tar.bz2 cygnal-e3778517d9c6409c9c917db83ccac20de1800a29.zip |
* path.cc (chdir): Always use the normalized_path as posix_cwd, except if it
starts with a drive.
Also perform whitespace cleanup.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index e7a698bb7..b524e61f3 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -916,7 +916,7 @@ chmod (const char *path, mode_t mode) fhandler_base *fh; if (!(fh = build_fh_name (path, NULL, PC_SYM_FOLLOW, stat_suffixes))) goto error; - + if (fh->error ()) { debug_printf ("got %d error from build_fh_name", fh->error ()); @@ -1058,10 +1058,10 @@ stat_worker (const char *name, struct __stat64 *buf, int nofollow) if (check_null_invalid_struct_errno (buf)) goto error; - if (!(fh = build_fh_name (name, NULL, nofollow ? PC_SYM_NOFOLLOW : PC_SYM_FOLLOW, + if (!(fh = build_fh_name (name, NULL, nofollow ? PC_SYM_NOFOLLOW : PC_SYM_FOLLOW, stat_suffixes))) goto error; - + if (fh->error ()) { debug_printf ("got %d error from build_fh_name", fh->error ()); @@ -1162,7 +1162,7 @@ access (const char *fn, int flags) { fhandler_base *fh = build_fh_name (fn, NULL, PC_SYM_FOLLOW, stat_suffixes); if (fh) - { + { res = fh->fhaccess (flags); delete fh; } @@ -1492,7 +1492,7 @@ ttyname_r (int fd, char *buf, size_t buflen) else if (buflen < strlen (cfd->ttyname ()) + 1) ret = ERANGE; else - strcpy (buf, cfd->ttyname ()); + strcpy (buf, cfd->ttyname ()); } debug_printf ("returning %d tty: %s", ret, ret ? "NULL" : buf); return ret; |