From 35fac31b7645e14d75200d31c631a8530c9b855c Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sun, 1 Aug 2021 11:56:21 -0400 Subject: [PATCH] Avoid long socket paths in KCM tests The build directory path may be too long for a Unix domain socket, so use a path in a temporary directory instead. Reported by Ryan Schmidt. ticket: 9019 --- src/tests/t_ccache.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tests/t_ccache.py b/src/tests/t_ccache.py index 6ea9fb9697..9e005ec566 100755 --- a/src/tests/t_ccache.py +++ b/src/tests/t_ccache.py @@ -21,8 +21,10 @@ # or implied warranty. from k5test import * +import tempfile -kcm_socket_path = os.path.join(os.getcwd(), 'testdir', 'kcm') +socketdir = tempfile.TemporaryDirectory() +kcm_socket_path = os.path.join(socketdir.name, 'kcm') conf = {'libdefaults': {'kcm_socket': kcm_socket_path, 'kcm_mach_service': '-'}} realm = K5Realm(krb5_conf=conf) -- 2.47.2