@@ -69,7 +69,7 @@ PromiseResult CheckPosixLinuxACL(EvalContext *ctx, const char *file_path, Acl ac
6969
7070 if (!CheckPosixLinuxAccessACEs (ctx , acl .acl_entries , acl .acl_method , file_path , a , pp , & result ))
7171 {
72- cfPS (ctx , LOG_LEVEL_ERR , PROMISE_RESULT_FAIL , pp , a , "Failed checking access ACL on %s" , file_path );
72+ cfPS (ctx , LOG_LEVEL_ERR , PROMISE_RESULT_FAIL , pp , & a , "Failed checking access ACL on %s" , file_path );
7373 PromiseRef (LOG_LEVEL_ERR , pp );
7474 return PROMISE_RESULT_FAIL ;
7575 }
@@ -79,7 +79,7 @@ PromiseResult CheckPosixLinuxACL(EvalContext *ctx, const char *file_path, Acl ac
7979 if (!CheckPosixLinuxDefaultACEs (ctx , acl .acl_default_entries , acl .acl_method , acl .acl_default ,
8080 file_path , a , pp , & result ))
8181 {
82- cfPS (ctx , LOG_LEVEL_ERR , PROMISE_RESULT_FAIL , pp , a , "Failed checking default ACL on '%s'" , file_path );
82+ cfPS (ctx , LOG_LEVEL_ERR , PROMISE_RESULT_FAIL , pp , & a , "Failed checking default ACL on '%s'" , file_path );
8383 PromiseRef (LOG_LEVEL_ERR , pp );
8484 return PROMISE_RESULT_FAIL ;
8585 }
@@ -333,7 +333,7 @@ static int CheckPosixLinuxACEs(EvalContext *ctx, Rlist *aces, AclMethod method,
333333 {
334334 case cfa_warn :
335335
336- cfPS (ctx , LOG_LEVEL_WARNING , PROMISE_RESULT_WARN , pp , a ,
336+ cfPS (ctx , LOG_LEVEL_WARNING , PROMISE_RESULT_WARN , pp , & a ,
337337 "%s ACL on file '%s' needs to be updated" , acl_type_str , file_path );
338338 * result = PromiseResultUpdate (* result , PROMISE_RESULT_WARN );
339339 break ;
@@ -375,7 +375,7 @@ static int CheckPosixLinuxACEs(EvalContext *ctx, Rlist *aces, AclMethod method,
375375 acl_free (acl_text_str );
376376 }
377377
378- cfPS (ctx , LOG_LEVEL_INFO , PROMISE_RESULT_CHANGE , pp , a , "%s ACL on '%s' successfully changed." , acl_type_str , file_path );
378+ cfPS (ctx , LOG_LEVEL_INFO , PROMISE_RESULT_CHANGE , pp , & a , "%s ACL on '%s' successfully changed." , acl_type_str , file_path );
379379 * result = PromiseResultUpdate (* result , PROMISE_RESULT_CHANGE );
380380
381381 break ;
@@ -387,7 +387,7 @@ static int CheckPosixLinuxACEs(EvalContext *ctx, Rlist *aces, AclMethod method,
387387 }
388388 else
389389 {
390- cfPS (ctx , LOG_LEVEL_VERBOSE , PROMISE_RESULT_NOOP , pp , a , "'%s' ACL on '%s' needs no modification." , acl_type_str , file_path );
390+ cfPS (ctx , LOG_LEVEL_VERBOSE , PROMISE_RESULT_NOOP , pp , & a , "'%s' ACL on '%s' needs no modification." , acl_type_str , file_path );
391391 }
392392
393393 acl_free (acl_existing );
@@ -432,7 +432,7 @@ static int CheckDefaultEqualsAccessACL(EvalContext *ctx, const char *file_path,
432432 switch (equals )
433433 {
434434 case 0 : // they equal, as desired
435- cfPS (ctx , LOG_LEVEL_VERBOSE , PROMISE_RESULT_NOOP , pp , a , "Default ACL on '%s' needs no modification." , file_path );
435+ cfPS (ctx , LOG_LEVEL_VERBOSE , PROMISE_RESULT_NOOP , pp , & a , "Default ACL on '%s' needs no modification." , file_path );
436436 retval = true;
437437 break ;
438438
@@ -442,7 +442,7 @@ static int CheckDefaultEqualsAccessACL(EvalContext *ctx, const char *file_path,
442442 {
443443 case cfa_warn :
444444
445- cfPS (ctx , LOG_LEVEL_WARNING , PROMISE_RESULT_WARN , pp , a , "Default ACL on '%s' needs to be copied from access ACL." ,
445+ cfPS (ctx , LOG_LEVEL_WARNING , PROMISE_RESULT_WARN , pp , & a , "Default ACL on '%s' needs to be copied from access ACL." ,
446446 file_path );
447447 * result = PromiseResultUpdate (* result , PROMISE_RESULT_WARN );
448448 break ;
@@ -463,7 +463,7 @@ static int CheckDefaultEqualsAccessACL(EvalContext *ctx, const char *file_path,
463463 }
464464 }
465465
466- cfPS (ctx , LOG_LEVEL_INFO , PROMISE_RESULT_CHANGE , pp , a ,
466+ cfPS (ctx , LOG_LEVEL_INFO , PROMISE_RESULT_CHANGE , pp , & a ,
467467 "Default ACL on '%s' successfully copied from access ACL." ,
468468 file_path );
469469 * result = PromiseResultUpdate (* result , PROMISE_RESULT_CHANGE );
@@ -519,7 +519,7 @@ int CheckDefaultClearACL(EvalContext *ctx, const char *file_path, Attributes a,
519519 break ;
520520
521521 case 0 : // no entries, as desired
522- cfPS (ctx , LOG_LEVEL_VERBOSE , PROMISE_RESULT_NOOP , pp , a , "Default ACL on '%s' needs no modification." , file_path );
522+ cfPS (ctx , LOG_LEVEL_VERBOSE , PROMISE_RESULT_NOOP , pp , & a , "Default ACL on '%s' needs no modification." , file_path );
523523 retval = true;
524524 break ;
525525
@@ -536,7 +536,7 @@ int CheckDefaultClearACL(EvalContext *ctx, const char *file_path, Attributes a,
536536 {
537537 case cfa_warn :
538538
539- cfPS (ctx , LOG_LEVEL_WARNING , PROMISE_RESULT_WARN , pp , a , "Default ACL on '%s' needs to be cleared" , file_path );
539+ cfPS (ctx , LOG_LEVEL_WARNING , PROMISE_RESULT_WARN , pp , & a , "Default ACL on '%s' needs to be cleared" , file_path );
540540 * result = PromiseResultUpdate (* result , PROMISE_RESULT_WARN );
541541 break ;
542542
@@ -552,7 +552,7 @@ int CheckDefaultClearACL(EvalContext *ctx, const char *file_path, Attributes a,
552552 }
553553 }
554554
555- cfPS (ctx , LOG_LEVEL_INFO , PROMISE_RESULT_CHANGE , pp , a , "Default ACL on '%s' successfully cleared" , file_path );
555+ cfPS (ctx , LOG_LEVEL_INFO , PROMISE_RESULT_CHANGE , pp , & a , "Default ACL on '%s' successfully cleared" , file_path );
556556 * result = PromiseResultUpdate (* result , PROMISE_RESULT_CHANGE );
557557 retval = true;
558558
@@ -1139,7 +1139,7 @@ static int ParseModePosixLinux(char *mode, acl_permset_t perms)
11391139
11401140PromiseResult CheckPosixLinuxACL (EvalContext * ctx , ARG_UNUSED const char * file_path , ARG_UNUSED Acl acl , Attributes a , const Promise * pp )
11411141{
1142- cfPS (ctx , LOG_LEVEL_ERR , PROMISE_RESULT_FAIL , pp , a ,
1142+ cfPS (ctx , LOG_LEVEL_ERR , PROMISE_RESULT_FAIL , pp , & a ,
11431143 "Posix ACLs are not supported on this Linux system - install the Posix acl library" );
11441144 PromiseRef (LOG_LEVEL_ERR , pp );
11451145 return PROMISE_RESULT_FAIL ;
0 commit comments