754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
|
|| setNamedSecurityInfoProc((LPSTR)nativePath, SE_FILE_OBJECT,
DACL_SECURITY_INFORMATION, NULL, NULL, newAcl, NULL)
== ERROR_SUCCESS ) {
res = 0;
}
done:
if (secDesc) ckfree(secDesc);
if (newAcl) ckfree((char *)newAcl);
if (userSid) ckfree((char *)userSid);
if (userDomain) ckfree(userDomain);
if (res != 0)
return res;
|
|
|
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
|
|| setNamedSecurityInfoProc((LPSTR)nativePath, SE_FILE_OBJECT,
DACL_SECURITY_INFORMATION, NULL, NULL, newAcl, NULL)
== ERROR_SUCCESS ) {
res = 0;
}
done:
if (secDesc) ckfree((char *)secDesc);
if (newAcl) ckfree((char *)newAcl);
if (userSid) ckfree((char *)userSid);
if (userDomain) ckfree(userDomain);
if (res != 0)
return res;
|