* external.cc (cygwin_internal): Add CW_GET_POSIX_SECURITY_ATTRIBUTE

handling.
	* include/cygwin/version.h: Bump API minor number.
	* include/sys/cygwin.h (cygwin_getinfo_types): Add
	CW_GET_POSIX_SECURITY_ATTRIBUTE.

	* exceptions.cc (init_global_security): Move from here...
	* sec_helper.cc (init_global_security): ...to here.
This commit is contained in:
Corinna Vinschen
2003-11-04 15:48:19 +00:00
parent c35391d0d2
commit bcd06214e1
6 changed files with 42 additions and 16 deletions

View File

@@ -265,6 +265,15 @@ cygwin_internal (cygwin_getinfo_types t, ...)
int deferrno = va_arg (arg, int);
return geterrno_from_win_error (error, deferrno);
}
case CW_GET_POSIX_SECURITY_ATTRIBUTE:
{
int attribute = va_arg (arg, int);
PSECURITY_ATTRIBUTES psa = va_arg (arg, PSECURITY_ATTRIBUTES);
void *sd_buf = va_arg (arg, void *);
DWORD sd_buf_size = va_arg (arg, DWORD);
set_security_attribute (attribute, psa, sd_buf, sd_buf_size);
return psa->lpSecurityDescriptor ? 0 : -1;
}
default:
return (DWORD) -1;
}