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

newaliases ignores config file's setting #90

Closed
colazivi opened this issue Oct 18, 2020 · 1 comment · Fixed by #97
Closed

newaliases ignores config file's setting #90

colazivi opened this issue Oct 18, 2020 · 1 comment · Fixed by #97

Comments

@colazivi
Copy link
Contributor

When run as 'newaliases' the config file is not read and only /etc/aliases is parsed, even though a different aliases-file may be set in the config file. Is this intentional?

The reason is:
read_aliases() is called:

dma/dma.c

Lines 470 to 477 in 7024d2e

} else if (strcmp(own_name, "newaliases") == 0) {
logident_base = "dma";
setlogident(NULL);
if (read_aliases() != 0)
errx(EX_SOFTWARE, "could not parse aliases file `%s'", config.aliases);
exit(EX_OK);
}

before:

dma/dma.c

Line 579 in 7024d2e

parse_conf(CONF_PATH "/dma.conf");

@corecode
Copy link
Owner

definitely a bug.

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

Successfully merging a pull request may close this issue.

2 participants