diff options
author | Topi Miettinen <toiwoton@gmail.com> | 2022-10-03 18:13:42 +0300 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2022-10-03 22:13:29 +0100 |
commit | a8ec0abe5acc371460b05db0e19a05656637ba1f (patch) | |
tree | 759b973d41df1c8982b3c2f841c4cbf54ef05f42 /src/tmpfiles | |
parent | a9b0d0a2d029d97c7552676b2afa603c300afd51 (diff) | |
download | systemd-a8ec0abe5acc371460b05db0e19a05656637ba1f.tar.gz |
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
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 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); |