* security.h (sec_user_nih): Make sid1 argument mandatory.

(sec_user): Ditto.
This commit is contained in:
Corinna Vinschen 2006-03-30 16:08:50 +00:00
parent 8f31f3f481
commit bb09410538
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-03-30 Corinna Vinschen <corinna@vinschen.de>
* security.h (sec_user_nih): Make sid1 argument mandatory.
(sec_user): Ditto.
2006-03-29 Christopher Faylor <cgf@timesys.com>
* sigproc.cc (wait_for_sigthread): Use the current user sid when

View File

@ -381,15 +381,17 @@ extern bool sec_acl (PACL acl, bool original, bool admins, PSID sid1 = NO_SID,
int __stdcall NTReadEA (const char *file, const char *attrname, char *buf, int len);
BOOL __stdcall NTWriteEA (const char *file, const char *attrname, const char *buf, int len);
/* Note: sid1 is usually (read: currently always) the current user's
effective sid (cygheap->user.sid ()). */
extern inline SECURITY_ATTRIBUTES *
sec_user_nih (SECURITY_ATTRIBUTES *sa_buf, PSID sid1 = NULL, PSID sid2 = NULL,
sec_user_nih (SECURITY_ATTRIBUTES *sa_buf, PSID sid1, PSID sid2 = NULL,
DWORD access2 = 0)
{
return __sec_user (sa_buf, sid1, sid2, access2, FALSE);
}
extern inline SECURITY_ATTRIBUTES *
sec_user (SECURITY_ATTRIBUTES *sa_buf, PSID sid1 = NULL, PSID sid2 = NULL,
sec_user (SECURITY_ATTRIBUTES *sa_buf, PSID sid1, PSID sid2 = NULL,
DWORD access2 = 0)
{
return __sec_user (sa_buf, sid1, sid2, access2, TRUE);