[Python-modules-commits] r34224 - in packages/python-llfuse/trunk/debian (3 files)
nikratio-guest at users.alioth.debian.org
nikratio-guest at users.alioth.debian.org
Thu Sep 10 21:15:18 UTC 2015
Date: Thursday, September 10, 2015 @ 21:15:16
Author: nikratio-guest
Revision: 34224
Added patches/setattr_compat.diff to restore full backwards
compatibility with version 0.40 (some applications were relying
on undocumented behavior were broken by the update to 0.41.1).
Added:
packages/python-llfuse/trunk/debian/patches/setattr_compat_patch.diff
Modified:
packages/python-llfuse/trunk/debian/changelog
packages/python-llfuse/trunk/debian/patches/series
Modified: packages/python-llfuse/trunk/debian/changelog
===================================================================
--- packages/python-llfuse/trunk/debian/changelog 2015-09-10 15:50:58 UTC (rev 34223)
+++ packages/python-llfuse/trunk/debian/changelog 2015-09-10 21:15:16 UTC (rev 34224)
@@ -1,9 +1,12 @@
-python-llfuse (0.41.1+dfsg-2) UNRELEASED; urgency=medium
+python-llfuse (0.41.1+dfsg-3) UNRELEASED; urgency=medium
* Bumped Cython dependency to >= 0.21.1. Older versions don't have
posix/time.pxi.
+ * Added patches/setattr_compat.diff to restore full backwards
+ compatibility with version 0.40 (some applications were relying
+ on undocumented behavior were broken by the update to 0.41.1).
- -- Nikolaus Rath <Nikolaus at rath.org> Mon, 24 Aug 2015 09:12:49 -0700
+ -- Nikolaus Rath <Nikolaus at rath.org> Thu, 10 Sep 2015 14:09:16 -0700
python-llfuse (0.41.1+dfsg-1) unstable; urgency=medium
Modified: packages/python-llfuse/trunk/debian/patches/series
===================================================================
--- packages/python-llfuse/trunk/debian/patches/series 2015-09-10 15:50:58 UTC (rev 34223)
+++ packages/python-llfuse/trunk/debian/patches/series 2015-09-10 21:15:16 UTC (rev 34224)
@@ -1,2 +1,3 @@
use-local-intersphinx-inventory.patch
force_xattr_api.diff
+setattr_compat_patch.diff
Added: packages/python-llfuse/trunk/debian/patches/setattr_compat_patch.diff
===================================================================
--- packages/python-llfuse/trunk/debian/patches/setattr_compat_patch.diff (rev 0)
+++ packages/python-llfuse/trunk/debian/patches/setattr_compat_patch.diff 2015-09-10 21:15:16 UTC (rev 34224)
@@ -0,0 +1,28 @@
+Description: Restore backwards compatibility of setattr() handler
+Forwarded: yes
+Last-Update: 2015-09-10
+Author: Nikolaus Rath <Nikolaus at rath.org>
+
+The 0.41.1 accidentally broke backwards compatibility by introducing
+default values other than None for the EntryAttributes class.
+Some file systems were relying on every attribute of the EntryAttributes
+instance passed to setattr() to be None if the attribute was not
+supposed to be updated (as opposed to only looking at those attributes
+that are actual candidates for an update).
+
+This patch restores backwards compatibility.
+
+--- a/src/llfuse/handlers.pxi
++++ b/src/llfuse/handlers.pxi
+@@ -89,6 +89,11 @@
+
+ try:
+ attr = EntryAttributes()
++
++ # For backwards compatibility
++ for name in attr.__slots__:
++ setattr(attr, name, None)
++
+ if to_set & (FUSE_SET_ATTR_ATIME_NOW | FUSE_SET_ATTR_MTIME_NOW):
+ ret = clock_gettime(CLOCK_REALTIME, &now)
+ if ret != 0:
More information about the Python-modules-commits
mailing list