aboutsummaryrefslogtreecommitdiffstats
path: root/news/nntpcache/files
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2006-03-17 08:06:37 +0800
committerleeym <leeym@FreeBSD.org>2006-03-17 08:06:37 +0800
commitc815449e33b3dd92a4db22daf9528e150788d371 (patch)
treeecbe7674122376fef6ef683784a96154d63ac556 /news/nntpcache/files
parent4ca3d1eb28dce6085e9ef89aa86547e94d14b38a (diff)
downloadfreebsd-ports-gnome-c815449e33b3dd92a4db22daf9528e150788d371.tar.gz
freebsd-ports-gnome-c815449e33b3dd92a4db22daf9528e150788d371.tar.zst
freebsd-ports-gnome-c815449e33b3dd92a4db22daf9528e150788d371.zip
- use %%RC_SUBR%% instead of hardcoded /etc/rc.subr [1]
- fix coredump when parsing user:pass@host in nntpcache.servers [2] - bump PORTREVISION PR: 94550 [1], 94549 [2] Submitted by: tps at vr-web.de [1][2]
Diffstat (limited to 'news/nntpcache/files')
-rw-r--r--news/nntpcache/files/nntpcached.in2
-rw-r--r--news/nntpcache/files/patch-src-nntpcache.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/news/nntpcache/files/nntpcached.in b/news/nntpcache/files/nntpcached.in
index 691fc250f3c6..f0c387e48aa0 100644
--- a/news/nntpcache/files/nntpcached.in
+++ b/news/nntpcache/files/nntpcached.in
@@ -11,7 +11,7 @@
# nntpcached_enable="YES"
#
-. /etc/rc.subr
+. %%RC_SUBR%%
name=nntpcached
rcvar=`set_rcvar`
diff --git a/news/nntpcache/files/patch-src-nntpcache.c b/news/nntpcache/files/patch-src-nntpcache.c
new file mode 100644
index 000000000000..ef3e490f551b
--- /dev/null
+++ b/news/nntpcache/files/patch-src-nntpcache.c
@@ -0,0 +1,11 @@
+--- src/nntpcache.c.orig Fri Mar 17 07:53:45 2006
++++ src/nntpcache.c Fri Mar 17 07:53:51 2006
+@@ -810,7 +810,7 @@
+ loge (("missing password in %s:%d: %s", file, n, buf));
+ continue;
+ }
+- if ((hostname = strrchr(password-2, '@')) != NULL) {
++ if ((hostname = strrchr(password, '@')) != NULL) {
+ *(hostname++) = '\0';
+ username = host;
+ list->user = Sstrdup (username);