Commit Diff
- Commit:
5e997b01390a9de2b9cefa7c44375da470e447c6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- s/ENOTSUP/EOPNOTSUPP/ linux defines these errors to the same values, but the landlock doc uses `EOPNOTSUPP' consistently. Spotted initially by brynet@ and reminded by Mickaël Salaün, thanks! ok thomas
- Actions:
- Patch | Tree
--- compat/landlock.c +++ compat/landlock.c @@ -86,7 +86,7 @@ landlock_no_fs(void) fd = landlock_create_ruleset(&rattr, sizeof(rattr), 0); if (fd == -1) { /* this kernel doesn't have landlock built in */ - if (errno == ENOSYS || errno == ENOTSUP) + if (errno == ENOSYS || errno == EOPNOTSUPP) return 0; return -1; }