Skip to content

Commit

Permalink
fix(login session): Fixed User desktop login failure after the .Xauth…
Browse files Browse the repository at this point in the history
…ority file's authname is modified

Description: 修复用户的.Xauthority文件的authname被修改后无法登录用户桌面问题

Log: null
  • Loading branch information
yangmin committed Nov 3, 2023
1 parent 7d6a8d6 commit 623ee55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/x-authority.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 623ee55

Please sign in to comment.