From: | "Jeroen Roovers (jer)" <jer@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-text/pinfo/files: pinfo-0.6.10-dir-file.patch |
Date: | Tue, 04 Jan 2011 16:48:53 |
Message-Id: | 20110104164843.262C32005E@flycatcher.gentoo.org |
1 | jer 11/01/04 16:48:43 |
2 | |
3 | Added: pinfo-0.6.10-dir-file.patch |
4 | Log: |
5 | Add patch to open files starting with "dir" by Ulrich Müller (bug #340697). |
6 | |
7 | (Portage version: 2.2.0_alpha12/cvs/Linux i686) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-text/pinfo/files/pinfo-0.6.10-dir-file.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/pinfo/files/pinfo-0.6.10-dir-file.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/pinfo/files/pinfo-0.6.10-dir-file.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: pinfo-0.6.10-dir-file.patch |
16 | =================================================================== |
17 | --- a/src/filehandling_functions.c |
18 | +++ b/src/filehandling_functions.c |
19 | @@ -742,7 +742,7 @@ |
20 | int i, j; |
21 | char *tmpfilename; |
22 | |
23 | - if (strncmp(filename, "dir", 3) == 0) |
24 | + if (strncmp(filename, "dir", 3) == 0 && !isalnum(filename[3])) |
25 | { |
26 | xfree(buf); |
27 | return opendirfile(number); |