diff --git a/usr.sbin/rpc.tlsservd/rpc.tlsservd.c b/usr.sbin/rpc.tlsservd/rpc.tlsservd.c index 2d520ac8e3d1..376f23c4950c 100644 --- a/usr.sbin/rpc.tlsservd/rpc.tlsservd.c +++ b/usr.sbin/rpc.tlsservd/rpc.tlsservd.c @@ -402,7 +402,16 @@ main(int argc, char **argv) rpctls_gothup = false; LIST_INIT(&rpctls_ssllist); - rpctls_syscall(RPCTLS_SYSC_SRVSETPATH, rpctls_sockname[mypos]); + if (rpctls_syscall(RPCTLS_SYSC_SRVSETPATH, rpctls_sockname[mypos]) < 0){ + if (rpctls_debug_level == 0) { + syslog(LOG_ERR, + "Can't set upcall socket path=%s errno=%d", + rpctls_sockname[mypos], errno); + exit(1); + } + err(1, "Can't set upcall socket path=%s", + rpctls_sockname[mypos]); + } rpctls_svc_run();