This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SMBFS mount's file cannot be made executable


On 8/14/2019 10:07 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin 
wrote:
>    249   98510 [main] getfacl 3412 __set_errno: char* __acltotext(aclent_t*, int, const char*, char, int):1644 setting errno 22

Here's where the EINVAL is coming from.  The source is in sec_acl.cc:

char *
__acltotext (...)
{
   if (!aclbufp || aclcnt < 0 || aclcnt > MAX_ACL_ENTRIES
       || (aclcnt > 0 && aclsort32 (aclcnt, 0, aclbufp)))
     {
       set_errno (EINVAL);
       return NULL;
     }

This is called by acl_to_any_text, which is called by getfacl.  Any 
chance you could try to debug this?

I'm about to go on vacation, but I could try to help when I get back.

Ken

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]