#1558 bug in get_sendmail_version

1.130
closed
5
2004-03-30
2004-03-29
Anonymous
No

We have running a sendmail system (version 8.12.3) on
a debian woody 3.0 linux server.
The sendmail installation has the feature 'persistent
host status database' enabled. (HostStatusDirectory in
sendmail.cf is specified)

If we browse via webmin to the sendmail configuration
(sendmail/index.cgi), webmin will hang quite a long time.
(during this time the load of our server rises up to 5).

The problem is in the function get_sendmail_version of
the file /usr/local/webmin/sendmail/sendmail-lib.pl.
The following line is not very efficient.
local $out = `$config{'sendmail_path'} -d0 -bh 2>&1
</dev/null`;
sendmail traces the whole persistent host database,
just for fetching the version string!

My workaround is the following (also not very beautiful):
local $out = `$config{'sendmail_path'} -d0 2>&1
</dev/null`;

Discussion

  • Jamie Cameron

    Jamie Cameron - 2004-03-30

    Logged In: YES
    user_id=129364

    A better option is to use -bv, which prints the version and
    then immediately fails.
    Thanks for pointing this out!

     
  • Jamie Cameron

    Jamie Cameron - 2004-03-30
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks