#313108 ssmtp: fails if -odb is given

Package:
ssmtp
Source:
ssmtp
Description:
extremely simple MTA to get mail off the system to a mail hub
Submitter:
Jörg Sommer
Date:
2026-03-04 19:15:01 UTC
Severity:
normal
Tags:
#313108#5
Date:
2005-06-11 22:02:21 UTC
From:
To:
Hi,

there is an ugly fall-through in the parsing of command line options.

    case 'b':
            switch(argv[i][++j]) {
...
            }

    /* Configfile name */
    case 'C':
            if((!argv[i][(j + 1)]) && argv[(i + 1)]) {

This causes at me the configfile is set to TERM=linux, which leads to the
whole process fails. A simple goto error; before case 'C' helps.

Kind regards, Jörg.