/* Set the security privilege for this process. */
tkp.PrivilegeCount = 1;
tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
- p_AdjustTokenPrivileges(hToken, FALSE, &tkp, 0, NULL, NULL);
+ p_AdjustTokenPrivileges(hToken, FALSE, &tkp, sizeof(TOKEN_PRIVILEGES), NULL, NULL);
lerror = GetLastError();
if (lerror != ERROR_SUCCESS) {
if (!ignore_errors) {
if (enable_priv(jcr, hToken, SE_RESTORE_NAME, ignore_errors)) {
stat |= 1<<2;
}
-#if 0
if (enable_priv(jcr, hToken, SE_SECURITY_NAME, ignore_errors)) {
stat |= 1<<0;
}
if (enable_priv(jcr, hToken, SE_CREATE_PERMANENT_NAME, ignore_errors)) {
stat |= 1<<10;
}
-#endif
+
if (stat) {
stat |= 1<<9;
}