summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2011-01-04 16:48:43 +0000
committerJeroen Roovers <jer@gentoo.org>2011-01-04 16:48:43 +0000
commit9dbbb61a4317758f97fa55f1dedb09e9a78416ef (patch)
treeab23e21cdc54d1ce40a16236b7cd448461225f42 /app-text/pinfo/files
parentSome Clean up (diff)
downloadhistorical-9dbbb61a4317758f97fa55f1dedb09e9a78416ef.tar.gz
historical-9dbbb61a4317758f97fa55f1dedb09e9a78416ef.tar.bz2
historical-9dbbb61a4317758f97fa55f1dedb09e9a78416ef.zip
Add patch to open files starting with "dir" by Ulrich Müller (bug #340697).
Package-Manager: portage-2.2.0_alpha12/cvs/Linux i686
Diffstat (limited to 'app-text/pinfo/files')
-rw-r--r--app-text/pinfo/files/pinfo-0.6.10-dir-file.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/app-text/pinfo/files/pinfo-0.6.10-dir-file.patch b/app-text/pinfo/files/pinfo-0.6.10-dir-file.patch
new file mode 100644
index 000000000000..7a282f354baa
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.10-dir-file.patch
@@ -0,0 +1,11 @@
+--- a/src/filehandling_functions.c
++++ b/src/filehandling_functions.c
+@@ -742,7 +742,7 @@
+ int i, j;
+ char *tmpfilename;
+
+- if (strncmp(filename, "dir", 3) == 0)
++ if (strncmp(filename, "dir", 3) == 0 && !isalnum(filename[3]))
+ {
+ xfree(buf);
+ return opendirfile(number);