]> git.deb.at Git - pkg/mmv.git/commitdiff
Patch to provide better diagnostics when renaming directories
authorAxel Beckert <abe@deuxchevaux.org>
Sun, 16 Sep 2012 18:11:32 +0000 (20:11 +0200)
committerAxel Beckert <abe@deuxchevaux.org>
Sun, 16 Sep 2012 18:12:28 +0000 (20:12 +0200)
Based on patch by Ulrich Eckhardt <doomster@knuut.de>.

Closes: #584850
debian/changelog
debian/patches/better-diagnostics-for-directories-584850.diff [new file with mode: 0644]
debian/patches/series

index c4461dd697ea929c86a5d291546331392c7d09ca..a985e548ba0e0aff453bb6466cdf752eb9cdabd5 100644 (file)
@@ -4,6 +4,8 @@ mmv (1.01b-16) UNRELEASED; urgency=low
   * Bump Standards-Version to 3.9.3 (no other changes necessary)
   * Switch to source format "3.0 (quilt)"
   * Add patch to fix FTBFS with -Werror=format-security
+  * Add slightly modified patch by Ulrich Eckhardt to provide better
+    diagnostics for directory renaming (Closes: #584850)
   * Rewrite debian/rules with oldstyle debhelper utilities
     + Use compat-level 9
     + Add build-dependency on debhelper >= 9~
diff --git a/debian/patches/better-diagnostics-for-directories-584850.diff b/debian/patches/better-diagnostics-for-directories-584850.diff
new file mode 100644 (file)
index 0000000..57044a7
--- /dev/null
@@ -0,0 +1,22 @@
+Description: Provide better diagnostic for directories
+ Provides better diagnostic when renaming directories. Based on patch
+ by Ulrich Eckhardt <doomster@knuut.de>.
+Debian-Bug: 584850
+Author: Axel Beckert <abe@debian.org>
+
+Index: mmv/mmv.c
+===================================================================
+--- mmv.orig/mmv.c     2012-09-16 20:03:04.269626454 +0200
++++ mmv/mmv.c  2012-09-16 20:06:18.220733497 +0200
+@@ -1215,7 +1215,11 @@
+       getstat(pathbuf, ffrom);
+       if ((ffrom->fi_stflags & FI_ISDIR) ? !dirs : !fils)
+ #endif
++      {
++              if (verbose)
++                      printf("ignoring directory %s\n", ffrom->fi_name);
+               return(0);
++      }
+       if (needslash) {
+               strcpy(pathend + *pk, SLASHSTR);
index 9111cc7f089c1e06b454ca77c8697ec0716663b7..7f633ff2cbbd771edae97a8720b118c3255bce68 100644 (file)
@@ -1,2 +1,3 @@
 patches-as-of-mmv-1.01b-15.diff
 format-security.diff
+better-diagnostics-for-directories-584850.diff