mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 02:02:38 +01:00
ircd::fs::dev: Add condition to skip non-device name without exception.
This commit is contained in:
parent
5bd4255006
commit
5a187da4b1
1 changed files with 3 additions and 0 deletions
|
@ -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)})
|
||||
|
|
Loading…
Reference in a new issue