From 080be4d845a305209d949dabb00e5b05da99088d Mon Sep 17 00:00:00 2001 From: Tyler Kerr <6621236+Destarianon@users.noreply.github.com> Date: Mon, 14 Apr 2025 21:54:36 +0000 Subject: [PATCH] strip unsupported line endings from password file --- glances/password.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glances/password.py b/glances/password.py index e3d12588..d24a5a42 100644 --- a/glances/password.py +++ b/glances/password.py @@ -118,4 +118,4 @@ class GlancesPassword: """Load the hashed password from the Glances folder.""" # Read the password file, if it exists with builtins.open(self.password_file) as file_pwd: - return file_pwd.read() + return file_pwd.read().strip()