]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveconf: Don't print an error if $rundir/dovecot.conf symlink doesn't exist
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 9 Mar 2021 19:35:15 +0000 (21:35 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 18 Mar 2021 08:35:02 +0000 (08:35 +0000)
src/config/doveconf.c

index 06d5ea199f0d551a4ff4f1a4958f98095d6dc696..5d903ec11436bcfc7a89121a418810f1181a5e4d 100644 (file)
@@ -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;
        }