]> git.sven.stormbind.net Git - sven/fuse-exfat.git/blobdiff - debian/patches/fix-unexpected-removal-on-dir-move-r337.patch
Remove all patches and usage of quilt.
[sven/fuse-exfat.git] / debian / patches / fix-unexpected-removal-on-dir-move-r337.patch
diff --git a/debian/patches/fix-unexpected-removal-on-dir-move-r337.patch b/debian/patches/fix-unexpected-removal-on-dir-move-r337.patch
deleted file mode 100644 (file)
index 8cb8de2..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-Fixed unexpected removal of a directory if it is moved into itself: return
-EINVAL in this situation. It also happens when trying to change directory name
-case.
-Picked from upstream svn r337.
-Index: fuse-exfat/libexfat/node.c
-===================================================================
---- fuse-exfat.orig/libexfat/node.c    2013-01-25 22:12:09.529117673 +0100
-+++ fuse-exfat/libexfat/node.c 2013-01-25 22:22:56.473094067 +0100
-@@ -905,6 +905,23 @@
-               exfat_put_node(ef, node);
-               return rc;
-       }
-+
-+      /* check that target is not a subdirectory of the source */
-+      if (node->flags & EXFAT_ATTRIB_DIR)
-+      {
-+              struct exfat_node* p;
-+
-+              for (p = dir; p; p = p->parent)
-+                      if (node == p)
-+                      {
-+                              if (existing != NULL)
-+                                      exfat_put_node(ef, existing);
-+                              exfat_put_node(ef, dir);
-+                              exfat_put_node(ef, node);
-+                              return -EINVAL;
-+                      }
-+      }
-+
-       if (existing != NULL)
-       {
-               /* remove target if it's not the same node as source */