From 84a2f421b7feb6560f302a9212f7788208f28f35 Mon Sep 17 00:00:00 2001 From: ut000168 Date: Tue, 13 Dec 2022 16:58:33 +0800 Subject: [PATCH] fix: Modify setGreeterUser return error value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit setGreeterUser的错误返回值修改 Log: setGreeterUser错误返回值修改 Influence: 漏洞 Task: https://pms.uniontech.com/task-view-227479.html Change-Id: I89fc670030e077b21e2419384259b18561a799fa (cherry picked from commit 2eb2b9ae366527f67fcf02f54f6aa2ccb33f9342) --- bin/dde-lockservice/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dde-lockservice/manager.go b/bin/dde-lockservice/manager.go index ba2aa83ba..3d6e8c5e4 100644 --- a/bin/dde-lockservice/manager.go +++ b/bin/dde-lockservice/manager.go @@ -119,7 +119,7 @@ func (m *Manager) SwitchToUser(username string) *dbus.Error { err := setGreeterUser(greeterUserConfig, username) if err != nil { - return dbusutil.ToError(err) + return dbusutil.ToError(errors.New("set greeter user failed")) } if current != "" { err = m.service.Emit(m, "UserChanged", username)