* path.cc (chdir): Always use the normalized_path as posix_cwd, except if it

starts with a drive.

Also perform whitespace cleanup.
This commit is contained in:
Christopher Faylor
2004-05-28 19:50:07 +00:00
parent dccc3e5d2c
commit e3778517d9
44 changed files with 287 additions and 282 deletions

View File

@@ -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);