]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: mworker: fix typo in chroot error message
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Jun 2021 06:59:19 +0000 (08:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Jun 2021 14:52:07 +0000 (16:52 +0200)
Since its introduction in 1.8 with commit 095ba4c24 ("MEDIUM: mworker:
replace systemd mode by master worker mode"), it says "cannot chroot1(...)"
which seems to be a leftover of a debug message. It could be backported but
probably nobody will notice.

src/haproxy.c

index 41d481c2b4be36063f75d87a28bf60c15ee4258b..45b069f31532554a1ad6ab51a0bd0102f16020fd 100644 (file)
@@ -3302,7 +3302,7 @@ int main(int argc, char **argv)
                /* chroot if needed */
                if (global.chroot != NULL) {
                        if (chroot(global.chroot) == -1 || chdir("/") == -1) {
-                               ha_alert("[%s.main()] Cannot chroot1(%s).\n", argv[0], global.chroot);
+                               ha_alert("[%s.main()] Cannot chroot(%s).\n", argv[0], global.chroot);
                                if (nb_oldpids)
                                        tell_old_pids(SIGTTIN);
                                protocol_unbind_all();