Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iswarezwp opened this issue Apr 10, 2018 · 0 comments

Comments

@iswarezwp
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant