mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-14 19:18:09 +02:00
eis: our socket lockfile doesn't need group permissions
Assisted-by: Claude:claude-opus-4-6 Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/388>
This commit is contained in:
parent
c436bd37ec
commit
2b9b001db9
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ eis_setup_backend_socket(struct eis *eis, const char *socketpath)
|
|||
* socket file. */
|
||||
_cleanup_free_ char *lockfile = xaprintf("%s.lock", path);
|
||||
_cleanup_close_ int lockfd =
|
||||
open(lockfile, O_CREAT | O_CLOEXEC | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
|
||||
open(lockfile, O_CREAT | O_CLOEXEC | O_RDWR, S_IRUSR | S_IWUSR);
|
||||
int rc = flock(lockfd, LOCK_EX | LOCK_NB);
|
||||
if (rc < 0) {
|
||||
log_error(eis, "Failed to create lockfile %s, is another EIS running?", lockfile);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue