Weirdnesses in McAfee autoupdate

Lawrence E. Bartash/NPCUSA Engineering lawbar at NPCUSA.COM
Tue Jan 15 15:48:28 GMT 2002


OK I got this one fixed.
Taking braces out does absolutely nothing.
I changed the perl calls to system calls temporarily and noticed that
$DATlink had a trailing / on it. Very bad, perl doesn't barf on this! :-(
therefore the real fix is on line 39
<my($DATlink) = "$mcafeeroot/dat/";
>my($DATlink) = "$mcafeeroot/dat";

also line 123 needs to be changed
<print "DATDir\n";
>print "DATdir\n";

These changes make everything work, including the removal of the old dat
files via the system call. :-)

> -----Original Message-----
> From: Stuart Luppescu [SMTP:s-luppescu at UCHICAGO.EDU]
> Sent: Tuesday, January 15, 2002 9:04 AM
> To:   MAILSCANNER at JISCMAIL.AC.UK
> Subject:      Re: Weirdnesses in McAfee autoupdate
>
> On  $B2P (J, 2002-01-15 at 02:57, Julian Field wrote: (J
> > At 22:26 14/01/2002, you wrote:
> > >On Mon, Jan 14, 2002 at 07:18:26PM +0000, Julian Field wrote:
> > > > At 16:50 14/01/2002, you wrote:
> > > > >I also experience this problem. The unlink and symlink does not
> appear
> > > to be
> > > > >working. I'm not sure that LockMcafee and UnlockMcafee are working
> either
> > > > >because I do not see the print statements when running autoupdate
> from the
> > > > >command line. Weird. It was working prior to upgrading from 2.62 to
> 3.00-3
> > > >
> > > > But I haven't touch the mcafee autoupdate script in months...
> > >
> > >revision 1.1
> > >date: 2001/12/13 18:25:07;  author: jkf;  state: Exp;
> > >branches:  1.1.2;
> > >Added McAfee autoupdate script with some bug-fixes from a user.
> > >
> > >
> > >That would I guess have first gone out in 3.0.
> >
> > I stand corrected. I have changed the code back again (removed some
> > brackets from lines 115-116) and will put it in the next release.
> >
> > The only interesting part of the diff was this:
> > 114,115c115,116
> > < unlink $DATlink if -l $DATlink;
> > < symlink $DATdir, $DATlink;
> > ---
> >  > unlink($DATlink) if -l $DATlink;
> >  > symlink($DATdir, $DATlink);
>
> Sorry, but this still doesn't fix it. When I run the script I get this
> message:
> A target has not been specified for scanning!
> /usr/local/mcafee/dat/
>
> /usr/local/mcafee/20020115
> It seems that it's happening at line 89, and then, because of the error,
> it's not even getting down to line 115 where it makes the symlinks, but
> I don't have the facility in perl to be sure.
> --
> Stuart Luppescu -=- s-luppescu at uchicago.edu
> University of Chicago -=- CCSR
>  $B:MJ8$HCRF`H~$NIc (J -=-    Kernel 2.4.14-xfs                 (J
> "Call immediately.  Time is running out.  We both
>  need to do something monstrous before we die." --
>  Message from Ralph Steadman to Hunter Thompson
>



More information about the MailScanner mailing list