[joerg at alea.gnuu.de: Bug#206283: actsyncd: getlist want port with -p]
Marco d'Itri
md at Linux.IT
Thu Sep 11 19:14:05 UTC 2003
----- Forwarded message from Jörg Sommer <joerg at alea.gnuu.de> -----
Subject: Bug#206283: actsyncd: getlist want port with -p
Reply-To: Jörg Sommer <joerg at alea.gnuu.de>, 206283 at bugs.debian.org
From: Jörg Sommer <joerg at alea.gnuu.de>
Package: inn2
Version: 2.4.0-2.nobse.1 (not installed)
Severity: normal
Tags: Patch
Hi,
the commandline of getlist has changed. It doesn't know anything about
the host:port syntax, instead it gets the port of the remote host as a
separate argument -p.
This need also be fixed in the manpage of getlist.
#v+
--- /tmp/actsyncd Tue Aug 19 22:00:40 2003
+++ /usr/lib/news/bin/actsyncd Tue Aug 19 22:06:47 2003
@@ -160,10 +160,10 @@
.*) cp $origdir/$host active; status=$? ;;
*)
if [ -z "$ftp" ]; then
- echo "getlist -h $host" >>$out
- if getlist -h $host > active 2>>$out; then
- :
- else
+ port=${host##*:}
+ real_host=${host%%:*}
+ echo "getlist -h $real_host -p $port" >>$out
+ if ! getlist -h $real_host -p $port > active 2>>$out; then
status=$NOSYNC
fi
else
#v-
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux joerg 2.4.21 #1 Son Jun 15 15:09:29 MEST 2003 i586
Locale: LANG=de_DE, LC_CTYPE=de_DE
----- End forwarded message -----
--
ciao, |
Marco | [1747 luprfd8Ygzszg]
More information about the inn-workers
mailing list