acl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Acl-devel] acl_from_text() not always setting errno


From: Rob Browning
Subject: Re: [Acl-devel] acl_from_text() not always setting errno
Date: Wed, 23 Oct 2013 11:25:31 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Rob Browning <address@hidden> writes:

> Well, I might be mistaken -- all we know for sure is that Anton saw a
> call to pylibacl's "posix1e.ACL(text=x)" result in an IOError exception
> with a 0 errno:
>
>       File "/usr/lib/bup/bup/metadata.py", line 706, in read
>         result._load_posix1e_acl_rec(port)
>       File "/usr/lib/bup/bup/metadata.py", line 511, in
> _load_posix1e_acl_rec
>         self.posix1e_acl = [posix1e.ACL(text=x) for x in acl_reps]
>     IOError: [Errno 0] Error

Anton added a bit of clarification -- he posted to bup-list that in his
case pylibacl reports the IOError with errno == 0 when "x" above refers
to a group that doesn't exist on the current system.

i.e. if you use x = y.to_any_text() on a machine, and then take x to
another machine[1] that doesn't have some group that's referred to by x,
and then call ACL(text=x), you'll see the exception with errno == 0.

[1] ...or presumably the same machine, if the group has been deleted.

Thanks again
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4



reply via email to

[Prev in Thread] Current Thread [Next in Thread]