[karmic] getxattr in python-fuse does not respect size=0 API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-fuse (Debian) |
Fix Released
|
Unknown
|
|||
python-fuse (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-fuse
The getxattr function in python fuse does not respect the API regarding size=0.
As the manpage says...
"""
An empty buffer of size zero can be passed into these calls to return the current size of the named extended
attribute, which can be used to estimate the size of a buffer which is sufficiently large to hold the value associ‐
ated with the extended attribute.
"""
However, it currently only checks if the returned string size is bigger than the asked-for size (and as this size is sometimes 0), you just get a broken behaviour (it even generates the incorrect error).
Both issues are fixed in the pach I'm attaching.
System info:
Ubuntu: 8.10
Installed python-fuse: 1:0.2-pre3-9
However, note that the problem is still in python-fuse's trunk (and the diff is against that)
Changed in python-fuse (Debian): | |
status: | Unknown → New |
Changed in python-fuse (Debian): | |
status: | New → Fix Released |
Thank you for your bug report. I have patched this package with your above patch. Here is the debdiff to close the bug. Please sponsor the upload.