diff options
Diffstat (limited to 'net-p2p/napshare/files/patch-src_hosts.c')
-rw-r--r-- | net-p2p/napshare/files/patch-src_hosts.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net-p2p/napshare/files/patch-src_hosts.c b/net-p2p/napshare/files/patch-src_hosts.c new file mode 100644 index 000000000000..9eb943e6f166 --- /dev/null +++ b/net-p2p/napshare/files/patch-src_hosts.c @@ -0,0 +1,14 @@ +--- src/hosts.c.orig Sat Jan 4 13:25:05 2003 ++++ src/hosts.c Sat Jan 4 13:27:43 2003 +@@ -265,6 +265,11 @@ + g_snprintf(h_tmp, sizeof(h_tmp), "%s/NAPS-urlcache.txt", path); + cachef = fopen(h_tmp, "r"); // open the normal file + } ++ // Try opening from data directory ++ if (cachef == NULL) { ++ g_snprintf(h_tmp, sizeof(h_tmp), "%s/NAPS-urlcache.txt", PACKAGE_DATA_DIR); ++ cachef = fopen(h_tmp, "r"); ++ } + } + + if (!cachef) { |