You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm probably wrong but seems like it might be faster using the fd (for the same file I'm setting the normal ACLs and uid/gid) so it would be nice if it could done with the fd too.
I'm up for trying to tweak that bit of code and testing it but I'm not sure I'd be able to write a decent unit test for it.
Cheers
Sam
The text was updated successfully, but these errors were encountered:
Hi,
My code was failing to set the default ACL when I was passing a file descriptor to applyto.
I saw a stackoverflow post showing somebody had it working with a path. That works for me too.
Looking at the code is it just that the type is not being passed to the libacl method when it is an fd?
https://github.com/iustin/pylibacl/blob/main/acl.c#L450C20-L450C30
I'm probably wrong but seems like it might be faster using the fd (for the same file I'm setting the normal ACLs and uid/gid) so it would be nice if it could done with the fd too.
I'm up for trying to tweak that bit of code and testing it but I'm not sure I'd be able to write a decent unit test for it.
Cheers
Sam
The text was updated successfully, but these errors were encountered: