[Bug 325860] [NEW] getxattr in python-fuse does not respect size=0 API

Launchpad Bug Tracker 325860 at bugs.launchpad.net
Mon Feb 9 02:02:06 GMT 2009


You have been subscribed to a public bug by Joseph Smidt (jsmidt):

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)

** Affects: python-fuse (Ubuntu)
     Importance: Undecided
         Status: New

-- 
getxattr in python-fuse does not respect size=0 API
https://bugs.launchpad.net/bugs/325860
You received this bug notification because you are a member of Ubuntu Sponsors for universe, which is a direct subscriber.



More information about the Ubuntu-universe-sponsors mailing list