First I should mention that the security-discuss is probably a better alias for this sort of question. Nonetheless, I can see one problem in the code below. aclp should be declared as
acl_t *aclp; /* just one star */ tom verma writes: > Hi all, > > I am trying to call some function from my application of libsec(3SEC). > I am able to call some function calls but unable the following call > acl_fromtext(),acl_check(),acltomode() etc. > Could any one help me to make the above call. > I have not funded any document related to above function aprt from man page. > following are my acl_fromtext() call from my application: > > #include <sys/acl.h> > int > main() > { > int convert; > char *acltextp = "user:bhushan:rw_"; > acl_t **aclp; > > convert = acl_fromtext(acltextp, &aclp); > if(convert == 0) > printf("converted\n"); > else > printf("error\n"); > > return 0; > } > > but above code is printing else part ie "error".is there anything wrong in > program. > Any help or is there any demo example available for the above functions. > > regards > > > This message posted from opensolaris.org > _______________________________________________ > smf-discuss mailing list > smf-discuss at opensolaris.org