mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
kwalletd: do not exit immediately if wallet is disabled
fixes hangup due to timeout in attempt to reach its D-Bus interface in KCM when wallet is disabled Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3075a17ece
commit
ffd83ff88d
1 changed files with 3 additions and 3 deletions
|
@ -146,13 +146,13 @@ char* checkPamModule(int argc, char **argv)
|
|||
int main(int argc, char **argv)
|
||||
{
|
||||
// check if kwallet is disabled
|
||||
if (!isWalletEnabled()) {
|
||||
const bool enabled = isWalletEnabled();
|
||||
if (!enabled) {
|
||||
kDebug() << "kwalletd is disabled!";
|
||||
return (0);
|
||||
}
|
||||
|
||||
char *hash = NULL;
|
||||
if (getenv("PAM_KWALLET_LOGIN")) {
|
||||
if (enabled && getenv("PAM_KWALLET_LOGIN")) {
|
||||
hash = checkPamModule(argc, argv);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue