You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/pinfo/files/pinfo-0.6.10-dir-file.patch

12 lines
280 B

--- 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);