[wing/is-same-user] wingcredentials: is_same_user should only check the sid



commit 7503654b5a840d38c4ab8f2a95f9a8df562c50d3
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Mon Mar 9 15:15:09 2020 +0100

    wingcredentials: is_same_user should only check the sid
    
    This method should only check the sid and not the pid like
    done in GCredentials. The caller should check the pid if required.

 wing/wingcredentials.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/wing/wingcredentials.c b/wing/wingcredentials.c
index 78f48cc..9d81b5d 100644
--- a/wing/wingcredentials.c
+++ b/wing/wingcredentials.c
@@ -198,8 +198,7 @@ wing_credentials_is_same_user (WingCredentials *credentials,
   g_return_val_if_fail (WING_IS_CREDENTIALS (credentials), FALSE);
   g_return_val_if_fail (WING_IS_CREDENTIALS (other_credentials), FALSE);
 
-  return credentials->pid == other_credentials->pid &&
-         g_strcmp0 (credentials->sid, other_credentials->sid) == 0;
+  return g_strcmp0 (credentials->sid, other_credentials->sid) == 0;
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]