From 4b9faa02b0200796fefb4782032162633e3f6bc3 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Tue, 22 Mar 2022 23:36:10 -0500 Subject: [PATCH] krb5: Fix KCM for root user --- lib/krb5/kcm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/krb5/kcm.c b/lib/krb5/kcm.c index a75fc03f9..f20fc5193 100644 --- a/lib/krb5/kcm.c +++ b/lib/krb5/kcm.c @@ -238,8 +238,7 @@ kcm_alloc(krb5_context context, if (residual) { /* KCM cache names must start with {UID} or {UID}: */ - if (residual[0] != '0') - plen = strspn(residual, "0123456789"); + plen = strspn(residual, "0123456789"); if (plen && residual[plen] != ':' && residual[plen] != '\0') plen = 0; /*