From a8ec0abe5acc371460b05db0e19a05656637ba1f Mon Sep 17 00:00:00 2001 From: Topi Miettinen Date: Mon, 3 Oct 2022 18:13:42 +0300 Subject: tmpfiles: fix assert Oct 03 17:33:20 systemd-tmpfiles[872]: Assertion 'IN_SET(i->type, CREATE_BLOCK_DEVICE|CREATE_CHAR_DEVICE)' failed at src/tmpfiles/tmpfiles.c:1837, function create_device(). Aborting. I think this is caused by the line: b! /dev/private/smartmontools-dev/sda 0660 root disk - 8:0 --- src/tmpfiles/tmpfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tmpfiles') diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 020219b176..7687316695 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -1834,7 +1834,7 @@ static int create_device(Item *i, mode_t file_type) { int r; assert(i); - assert(IN_SET(i->type, CREATE_BLOCK_DEVICE|CREATE_CHAR_DEVICE)); + assert(IN_SET(i->type, CREATE_BLOCK_DEVICE, CREATE_CHAR_DEVICE)); assert(IN_SET(file_type, S_IFBLK, S_IFCHR)); r = path_extract_filename(i->path, &bn); -- cgit v1.2.1