[joerg at alea.gnuu.de: Bug#206283: actsyncd: getlist want port with -p]

Marco d'Itri md at Linux.IT
Fri Sep 12 00:04:49 UTC 2003


On Sep 11, Marco d'Itri <md at Linux.IT> wrote:

 >--- /tmp/actsyncd       Tue Aug 19 22:00:40 2003
 >+++ /usr/lib/news/bin/actsyncd  Tue Aug 19 22:06:47 2003
Better (i.e. it actually works):

--- inn2-2.4.0+20030808.orig/backends/actsyncd.in
+++ inn2-2.4.0+20030808/backends/actsyncd.in
@@ -160,10 +160,13 @@
     .*) 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%%:*}
+           if [ "$port" = "$host" ]; then
+             port=119
+           fi
+           echo "getlist -h $real_host -p $port" >>$out
+           if ! getlist -h $real_host -p $port > active 2>>$out; then
              status=$NOSYNC
            fi
         else


Other bug: storage/Make.methods should be deleted by the clean target
of storage/Makefile.


-- 
ciao, |
Marco | [1752 emMq6xqbXlKhU]


More information about the inn-workers mailing list