mirror of
https://github.com/systemd/systemd.git
synced 2025-03-13 00:58:27 +03:00
udev: do not use exact match of file permission
This partially reverts 25de7aa7b90c23d33ea50ada1e50c5834a414237. Fixes #14473.
This commit is contained in:
parent
983ffdb0bf
commit
7a182f1034
@ -1654,7 +1654,7 @@ static int udev_rule_apply_token_to_event(
|
||||
if (mode == MODE_INVALID)
|
||||
return token->op == OP_MATCH;
|
||||
|
||||
match = (((statbuf.st_mode ^ mode) & 07777) == 0);
|
||||
match = (statbuf.st_mode & mode) > 0;
|
||||
return token->op == (match ? OP_MATCH : OP_NOMATCH);
|
||||
}
|
||||
case TK_M_PROGRAM: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user