0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-23 20:38:20 +02:00

ircd::fs::dev: Add condition to skip non-device name without exception.

This commit is contained in:
Jason Volk 2021-03-01 16:38:50 -08:00
parent 5bd4255006
commit 5a187da4b1

View file

@ -27,6 +27,9 @@ ircd::fs::dev::for_each(const string_view &type,
split(filename(path_scratch, dir), ':')
};
if(!major || !minor)
continue;
const ulong id
{
dev::id({lex_cast<ulong>(major), lex_cast<ulong>(minor)})