aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/security.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-03-30 16:08:50 +0000
committerCorinna Vinschen <corinna@vinschen.de>2006-03-30 16:08:50 +0000
commitbb09410538f38a3eccc111f6f6be65d35f1be9e8 (patch)
tree39d8db38a70167bb0bbc15faea0768f769f4a1a0 /winsup/cygwin/security.h
parent8f31f3f481ee4f71c5f93f5264dc35eae5bd1803 (diff)
downloadnewlib-bb09410538f38a3eccc111f6f6be65d35f1be9e8.zip
newlib-bb09410538f38a3eccc111f6f6be65d35f1be9e8.tar.gz
newlib-bb09410538f38a3eccc111f6f6be65d35f1be9e8.tar.bz2
* security.h (sec_user_nih): Make sid1 argument mandatory.
(sec_user): Ditto.
Diffstat (limited to 'winsup/cygwin/security.h')
-rw-r--r--winsup/cygwin/security.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h
index a15f55e..ec53dfc 100644
--- a/winsup/cygwin/security.h
+++ b/winsup/cygwin/security.h
@@ -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);