Skip to content

Conversation

@jrha
Copy link
Member

@jrha jrha commented Dec 6, 2024

That is:

  • Maximum 15 characters (16 including null)
  • No whitespace
  • No forward-slashes
  • No colons (but they are allowed in filenames to label alias IPs)

While we're at it, make the regexp in the module absolute, as we're actually matching filenames there.

Similar validation should also happen in the schema as only throwing errors at runtime is really unfriendly.

See also lib/utils.c#L826 and net/core/dev.c#L1066.

That is:
- Maximum 15 characters (16 including null)
- No whitespace
- No forward-slashes
- No colons (but they _are_ allowed in filenames in order to label alias IPs)

While we're at it, make the regexp in the module absolute, as we're actually matching filenames there.

Similar validation should also happen in the schema as only throwing errors at runtime is _really_ unfriendly.
@jrha jrha added this to the 25.next milestone Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant