From fe66ebf209069d32287c26847acfe09236583ba3 Mon Sep 17 00:00:00 2001 From: dtucker Date: Mon, 8 Aug 2016 22:40:57 +0000 Subject: [PATCH] Improve error message for overlong ControlPath. ok markus@ djm@ --- usr.bin/ssh/mux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/ssh/mux.c b/usr.bin/ssh/mux.c index c797fc6956d..ac9bcae2b07 100644 --- a/usr.bin/ssh/mux.c +++ b/usr.bin/ssh/mux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mux.c,v 1.60 2016/06/03 03:14:41 dtucker Exp $ */ +/* $OpenBSD: mux.c,v 1.61 2016/08/08 22:40:57 dtucker Exp $ */ /* * Copyright (c) 2002-2008 Damien Miller * @@ -2116,7 +2116,8 @@ muxclient(const char *path) if (strlcpy(addr.sun_path, path, sizeof(addr.sun_path)) >= sizeof(addr.sun_path)) - fatal("ControlPath too long"); + fatal("ControlPath too long ('%s' >= %u bytes)", path, + (unsigned int)sizeof(addr.sun_path)); if ((sock = socket(PF_UNIX, SOCK_STREAM, 0)) < 0) fatal("%s socket(): %s", __func__, strerror(errno)); -- 2.20.1