tree-wide: use cocinnelle to apply _NEG_ macros

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2023-08-16 12:52:56 +02:00
parent b0be985cdd
commit 13d84288bc
13 changed files with 66 additions and 23 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ static void test_path_is_encrypted_one(const char *p, int expect) {
int r;
r = path_is_encrypted(p);
if (r == -ENOENT || (r < 0 && ERRNO_IS_PRIVILEGE(r)))
if (r == -ENOENT || ERRNO_IS_NEG_PRIVILEGE(r))
/* This might fail, if btrfs is used and we run in a container. In that case we cannot
* resolve the device node paths that BTRFS_IOC_DEV_INFO returns, because the device nodes
* are unlikely to exist in the container. But if we can't stat() them we cannot determine