f-prot autoupdate error

Julian Field mailscanner at ecs.soton.ac.uk
Sun Jul 7 18:42:15 IST 2002


Well spotted. This is due to a mistake by F-Prot where they have edited a
file on a PC where they previously edited it on a Unix box...

My "official" patch (including some line numbers) to f-prot/autoupdate is this

*** 131,140 ****
--- 131,142 ----
   # Read the file once to pull out the ftp URL of the update server
   #
   while(<TEMPFILE>) {
     chomp;
     next unless s/^S://;
+   # Delete trailing newlines and stuff like that
+   s/\s*$//g;
     $Server = $_;
   }
   close(TEMPFILE);
   print STDERR "FTP address for retrieving files is $Server\n"
     unless $quiet || $cron;

This will be fixed in the next minor release.

At 18:24 07/07/2002, you wrote:
>Thanks for the Perl tip Julian.
>On further check, the problems seems to be that there is a non-printable
>character after the ftp download URL.  A check with vi on the tmp-web file
>shows a "^M" character at the end of the download URL.
>
>Stripping it off will fix the problem.
>
>###########################################################
>     # Download it from the server
>print STDERR "xxx $Server xxx\n";
>     $Server =~ s/\s*$//g;
>     # maybe should strip somewhere on top first instead of here
>print STDERR "xxx111 $Server xxx111\n";
>     DownloadFile($Server, $FileToCheck);
>###########################################################
>  xxxftp://us-1.updates.f-prot.com/pub/
>xxx111 ftp://us-1.updates.f-prot.com/pub/ xxx111
>###########################################################

--
Julian Field                Teaching Systems Manager
jkf at ecs.soton.ac.uk         Dept. of Electronics & Computer Science
Tel. 023 8059 2817          University of Southampton
                             Southampton SO17 1BJ



More information about the MailScanner mailing list