]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: fix assert
authorTopi Miettinen <toiwoton@gmail.com>
Mon, 3 Oct 2022 15:13:42 +0000 (18:13 +0300)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 3 Oct 2022 21:13:29 +0000 (22:13 +0100)
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

index 020219b176e7250a46d5728cd886112fcc3a7423..7687316695fdf5c1c1d7cd1fa8d5752685cd27b3 100644 (file)
@@ -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_DEVICECREATE_CHAR_DEVICE));
         assert(IN_SET(file_type, S_IFBLK, S_IFCHR));
 
         r = path_extract_filename(i->path, &bn);