summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-05-28 19:50:07 +0000
committerChristopher Faylor <me@cgf.cx>2004-05-28 19:50:07 +0000
commite3778517d9c6409c9c917db83ccac20de1800a29 (patch)
tree407e958798d6f156ff0762350734b7b92cf032d8 /winsup/cygwin/syscalls.cc
parentdccc3e5d2c6059410c12feb9e5d26f3176334011 (diff)
downloadcygnal-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.cc10
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;