Skip to content

Commit

Permalink
libwtmpdb: fallback to sqlite if SELinux blocks varlink socket
Browse files Browse the repository at this point in the history
  • Loading branch information
thkukuk committed Jan 10, 2025
1 parent 12da60f commit 793021a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libwtmpdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static int varlink_is_enforced = 0;
/* we can use varlink only if no specific database is requested */ \
if (varlink_is_enforced || (varlink_is_active && db_path == NULL))

#define VARLINK_IS_NOT_RUNNING(r) (r == -ECONNREFUSED || r == -ENOENT || r == -ECONNRESET)
#define VARLINK_IS_NOT_RUNNING(r) (r == -ECONNREFUSED || r == -ENOENT || r == -ECONNRESET || r == -EACCES)

/*
Add new wtmp entry to db.
Expand Down

0 comments on commit 793021a

Please sign in to comment.