aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/external.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/external.cc
parentdccc3e5d2c6059410c12feb9e5d26f3176334011 (diff)
downloadnewlib-e3778517d9c6409c9c917db83ccac20de1800a29.zip
newlib-e3778517d9c6409c9c917db83ccac20de1800a29.tar.gz
newlib-e3778517d9c6409c9c917db83ccac20de1800a29.tar.bz2
* 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/external.cc')
-rw-r--r--winsup/cygwin/external.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc
index b149324..c6694fa 100644
--- a/winsup/cygwin/external.cc
+++ b/winsup/cygwin/external.cc
@@ -252,7 +252,7 @@ cygwin_internal (cygwin_getinfo_types t, ...)
return check_ntsec (filename);
}
case CW_GET_ERRNO_FROM_WINERROR:
- {
+ {
int error = va_arg (arg, int);
int deferrno = va_arg (arg, int);
return geterrno_from_win_error (error, deferrno);
@@ -270,20 +270,20 @@ cygwin_internal (cygwin_getinfo_types t, ...)
memcpy (sd_buf, sd, sd.size ());
psa->lpSecurityDescriptor = sd_buf;
return 0;
- }
+ }
case CW_GET_SHMLBA:
- {
+ {
return getshmlba ();
}
case CW_GET_UID_FROM_SID:
- {
+ {
PSID psid = va_arg (arg, PSID);
cygsid sid (psid);
struct passwd *pw = internal_getpwsid (sid);
return pw ? pw->pw_uid : (__uid32_t)-1;
}
case CW_GET_GID_FROM_SID:
- {
+ {
PSID psid = va_arg (arg, PSID);
cygsid sid (psid);
struct __group32 *gr = internal_getgrsid (sid);