Package: python-pyxattr Version: 0.2.1-1.1 Severity: normal xattr.listxattr(fullname, True) where fullname is the path of a broken symlink doesn't actually get the xattrs of the symlink, as it should. In python-pyxattr-0.2.1/xattr.c there is code like the following:
nalloc = ishandle ? flistxattr(filedes, NULL, 0) : listxattr(file, NULL, 0); if(nalloc == -1) { return PyErr_SetFromErrno(PyExc_IOError); } This fails when the symlink points to a non-existing file. The code should be changed to parallel the correct invocation of the actual xattr listing: /* Now retrieve the list of attributes */ nret = ishandle ? flistxattr(filedes, buf, nalloc) : dolink ? llistxattr(file, buf, nalloc) : listxattr(file, buf, nalloc); We need to use llistxattr in both cases when dolink is true. --scott -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.22-rc5 (SMP w/2 CPU cores) Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages python-pyxattr depends on: ii libattr1 1:2.4.32-1.1 Extended attribute shared library ii libc6 2.5-11 GNU C Library: Shared libraries ii python 2.4.4-6 An interactive high-level object-o ii python-support 0.6.4 automated rebuilding support for p python-pyxattr recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]