s4-pvfs: use O_FOLLOW one level at a time for security overrides
[ira/wip.git] / libcli / security / secacl.c
index 45640773b009448c977487d226dddca76a56aea7..29afe460b16485a17b7796f4c04b60ca4b6b3ddd 100644 (file)
@@ -21,7 +21,8 @@
  */
 
 #include "includes.h"
-#include "libcli/security/security.h"
+#include "librpc/gen_ndr/ndr_security.h"
+#include "libcli/security/secace.h"
 
 #define  SEC_ACL_HEADER_SIZE (2 * sizeof(uint16_t) + sizeof(uint32_t))
 
@@ -50,7 +51,7 @@ struct security_acl *make_sec_acl(TALLOC_CTX *ctx,
           positive number. */
 
        if ((num_aces) && 
-            ((dst->aces = talloc_array(ctx, struct security_ace, num_aces)) 
+            ((dst->aces = talloc_array(dst, struct security_ace, num_aces))
              == NULL)) {
                return NULL;
        }