sweep 374 - virus found but no name

Mike Brudenell pmb1 at YORK.AC.UK
Mon Sep 29 16:56:50 IST 2003


Greetings -

A little earlier this afternoon Julian suggested applying this patch to the
sophos-wrapper script...

    Apply this patch to /usr/lib/MailScanner/sophos-wrapper

    --------------------------SNIP---------------------
    --- sophos-wrapper.old 2003-08-09 12:04:02.000000000 +0100
    +++ sophos-wrapper      2003-09-29 15:30:00.000000000 +0100
    @@ -38,8 +38,10 @@

      SAV_IDE=$PackageDir/ide
      LD_LIBRARY_PATH=$PackageDir/lib
    +LANG=english
      export SAV_IDE
      export LD_LIBRARY_PATH
    +export LANG

      if [ "x$1" = "x-IsItInstalled" ]; then
        [ -x ${PackageDir}/bin/$prog ] && exit 0
    --------------------------SNIP---------------------

Unfortunately this cause this script to emit the warning message

    couldn't set locale correctly

when run from, for example, bin/update_virus_scanners.  It seems to come
from the point where the LANG environment variable actually gets set.

This can be annoying as a regular cron job will now e-mail this output to
the username under which it is being run.

On our (English) Solaris 8 machine here in the UK setting the LANG
environment variable to "en_GB" instead seems to silence it.  (Trying "en"
or "en_US" both still produce the warning..)  However I suspect "en_GB"
will fail on systems in other languages, so probably isn't a correction for
'english' as the value for LANG.

Understanding the section 5 man page for environ may hold a clue, but
currently exceeds my level of Universal Enlightenment.

Cheers,

Mike B-}

--
The Computing Service, University of York, Heslington, York Yo10 5DD, UK
Tel:+44-1904-433811  FAX:+44-1904-433740

* Unsolicited commercial e-mail is NOT welcome at this e-mail address. *



More information about the MailScanner mailing list