git://git.exim.org
/
users
/
heiko
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add testsuite case retry (without update) option on failed file compare.
[users/heiko/exim.git]
/
src
/
OS
/
os.c-cygwin
diff --git
a/src/OS/os.c-cygwin
b/src/OS/os.c-cygwin
index 56b5a71849aa73259751d0a9a3378e685d5b9792..ea17a436eee23cff44794419e7978496c7d78985 100644
(file)
--- a/
src/OS/os.c-cygwin
+++ b/
src/OS/os.c-cygwin
@@
-1,5
+1,3
@@
-/* $Cambridge: exim/src/OS/os.c-cygwin,v 1.4 2005/10/03 09:53:38 ph10 Exp $ */
-
/*************************************************
* Exim - an Internet mail transport agent *
*************************************************/
/*************************************************
* Exim - an Internet mail transport agent *
*************************************************/
@@
-49,6
+47,8
@@
unsigned int cygwin_WinVersion;
#endif
#include <windows.h>
#endif
#include <windows.h>
+#define EqualLuid(Luid1, Luid2) \
+ ((Luid1.LowPart == Luid2.LowPart) && (Luid1.HighPart == Luid2.HighPart))
#include <sys/cygwin.h>
/* Special static variables */
#include <sys/cygwin.h>
/* Special static variables */
@@
-130,9
+130,9
@@
static DWORD get_privileges ()
&& GetTokenInformation(hToken, TokenPrivileges,
privs, length, &length)))) {
for (i = 0; i < privs->PrivilegeCount; i++) {
&& GetTokenInformation(hToken, TokenPrivileges,
privs, length, &length)))) {
for (i = 0; i < privs->PrivilegeCount; i++) {
- if (
privs->Privileges[i].Luid.QuadPart == cluid.QuadPart
)
+ if (
EqualLuid(privs->Privileges[i].Luid, cluid)
)
ret |= CREATE_BIT;
ret |= CREATE_BIT;
- else if (
privs->Privileges[i].Luid.QuadPart == rluid.QuadPart
)
+ else if (
EqualLuid(privs->Privileges[i].Luid, rluid)
)
ret |= RESTORE_BIT;
else continue;
if (ret == (CREATE_BIT | RESTORE_BIT))
ret |= RESTORE_BIT;
else continue;
if (ret == (CREATE_BIT | RESTORE_BIT))