diff options
Diffstat (limited to 'src/tmpfiles')
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 538d5273cf..5fb4cbf04a 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -2520,7 +2520,7 @@ static int create_item(Item *i) { case CREATE_BLOCK_DEVICE: case CREATE_CHAR_DEVICE: - if (have_effective_cap(CAP_MKNOD) == 0) { + if (have_effective_cap(CAP_MKNOD) <= 0) { /* In a container we lack CAP_MKNOD. We shouldn't attempt to create the device node in that * case to avoid noise, and we don't support virtualized devices in containers anyway. */ |