summaryrefslogtreecommitdiffstats
path: root/testing/par2cmdline/par2cmdline-0.4-wildcard-fix.patch
diff options
context:
space:
mode:
authorKalonji <lonkaji@gmail.com>2011-01-05 20:51:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-01-06 16:46:58 +0000
commite0ea45d11b5a05c041de8dc84d3e9c08347cbf17 (patch)
tree8b38515d772335cbd21b566032a486f0bbbf90f6 /testing/par2cmdline/par2cmdline-0.4-wildcard-fix.patch
parentcb424d1f4591b21f95289a1bcc2cc081076af6e5 (diff)
downloadaports-e0ea45d11b5a05c041de8dc84d3e9c08347cbf17.tar.bz2
aports-e0ea45d11b5a05c041de8dc84d3e9c08347cbf17.tar.xz
new port: par2cmdline
Diffstat (limited to 'testing/par2cmdline/par2cmdline-0.4-wildcard-fix.patch')
-rw-r--r--testing/par2cmdline/par2cmdline-0.4-wildcard-fix.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/par2cmdline/par2cmdline-0.4-wildcard-fix.patch b/testing/par2cmdline/par2cmdline-0.4-wildcard-fix.patch
new file mode 100644
index 000000000..d5f43c796
--- /dev/null
+++ b/testing/par2cmdline/par2cmdline-0.4-wildcard-fix.patch
@@ -0,0 +1,23 @@
+--- commandline.cpp.orig 2006-04-06 21:41:27.000000000 -0700
++++ commandline.cpp 2006-04-07 00:12:29.000000000 -0700
+@@ -550,6 +550,20 @@
+ }
+ else
+ {
++ //start of shell expanded * patch. -- Michael Evans
++ //The shell might expaned * so, if we have our name and we're creating, then filter for files...
++ if ((parfilename.length() != 0) && (operation == opCreate))
++ {
++ struct stat st;
++ if (!(stat(argv[0], &st) == 0 && S_ISREG(st.st_mode)))
++ {
++ cerr << "Skipping non-regular file: " << argv[0] << endl;
++ argc--;
++ argv++;
++ options = false;
++ continue;
++ }
++ }//end of shell expanded * patch. -- Michael Evans
+ filenames = new list<string>;
+ filenames->push_back(argv[0]);
+ }