From: Timo Sirainen Date: Tue, 9 Mar 2021 19:35:15 +0000 (+0200) Subject: doveconf: Don't print an error if $rundir/dovecot.conf symlink doesn't exist X-Git-Tag: 2.3.15~186 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3382a7c0f4b7593e974584ae2daee3a29f784be1;p=thirdparty%2Fdovecot%2Fcore.git doveconf: Don't print an error if $rundir/dovecot.conf symlink doesn't exist --- diff --git a/src/config/doveconf.c b/src/config/doveconf.c index 06d5ea199f..5d903ec114 100644 --- a/src/config/doveconf.c +++ b/src/config/doveconf.c @@ -843,7 +843,8 @@ static void check_wrong_config(const char *config_path) base_dir = get_setting("master", "base_dir"); symlink_path = t_strconcat(base_dir, "/"PACKAGE".conf", NULL); if (t_readlink(symlink_path, &prev_path, &error) < 0) { - i_error("t_readlink(%s) failed: %s", symlink_path, error); + if (errno != ENOENT) + i_error("t_readlink(%s) failed: %s", symlink_path, error); return; }