Skip to content

when /var/log has no spaces check_bonding_status will cause xha coredump #6

@iswarezwp

Description

@iswarezwp
MTC_BOND_STATUS
check_bonding_status()
{
    ......
    if ((fp = fopen(bonding_status, "r")) == NULL)
    {
        log_message(MTC_LOG_WARNING,
            "BM: cannot open bonding status file (%s). (%d)\n", bonding_status, errno);
        assert(errno == ENOENT);
        return BOND_STATUS_NOBOND;
    }

As you can see, when log dir has no spaces, the errno return by fopen will be changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions