]> git.deb.at Git - pkg/mmv.git/blob - debian/patches/better-diagnostics-for-directories-584850.diff
Bump Standards-Version to 3.9.6
[pkg/mmv.git] / debian / patches / better-diagnostics-for-directories-584850.diff
1 Description: Provide better diagnostic for directories
2  Provides better diagnostic when renaming directories. Based on patch
3  by Ulrich Eckhardt <doomster@knuut.de>.
4 Debian-Bug: 584850
5 Author: Axel Beckert <abe@debian.org>
6
7 Index: mmv/mmv.c
8 ===================================================================
9 --- mmv.orig/mmv.c      2012-09-16 20:03:04.269626454 +0200
10 +++ mmv/mmv.c   2012-09-16 20:06:18.220733497 +0200
11 @@ -1215,7 +1215,11 @@
12         getstat(pathbuf, ffrom);
13         if ((ffrom->fi_stflags & FI_ISDIR) ? !dirs : !fils)
14  #endif
15 +       {
16 +               if (verbose)
17 +                       printf("ignoring directory %s\n", ffrom->fi_name);
18                 return(0);
19 +       }
20  
21         if (needslash) {
22                 strcpy(pathend + *pk, SLASHSTR);