problem initially noted by myself for passwd(1)
millert@ reported similar problem on chpass(1), su(1), doas(1) and encrypt(1)
mestre@ noted chpass(1) too
ok mestre@ millert@
formerpath = "";
# ifdef __OpenBSD__
formerpath = "";
# ifdef __OpenBSD__
- if (unveil(_PATH_LOGIN_CONF, "r") == -1)
+ if (unveil(_PATH_LOGIN_CONF, "r") == -1 ||
+ unveil(_PATH_LOGIN_CONF ".db", "r") == -1)
err(1, "unveil");
# endif
if (rule->cmd) {
err(1, "unveil");
# endif
if (rule->cmd) {