From: Topi Miettinen Date: Mon, 3 Oct 2022 15:13:42 +0000 (+0300) Subject: tmpfiles: fix assert X-Git-Tag: v252-rc1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8ec0abe5acc371460b05db0e19a05656637ba1f;p=thirdparty%2Fsystemd.git 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 --- diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 020219b176e..7687316695f 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);