From e099e67cbb35d16df47934b27ce607f91e6cc099 Mon Sep 17 00:00:00 2001 From: yangmin Date: Fri, 3 Nov 2023 13:39:29 +0800 Subject: [PATCH] fix(login session): Fixed User desktop login failure after the .Xauthority file's authname is modified MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description: 修复用户的.Xauthority文件的authname被修改后无法登录用户桌面问题 Log: null --- src/x-authority.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/x-authority.c b/src/x-authority.c index a312d6df..fc27e1b4 100644 --- a/src/x-authority.c +++ b/src/x-authority.c @@ -294,7 +294,8 @@ x_authority_write (XAuthority *auth, XAuthWriteMode mode, const gchar *filename, if (!matched && priv->family == a_priv->family && address_matches && - strcmp (priv->number, a_priv->number) == 0) + strcmp (priv->number, a_priv->number) == 0 && + strcmp (priv->authorization_name, a_priv->authorization_name) == 0) { matched = TRUE; if (mode == XAUTH_WRITE_MODE_REMOVE)