lib/: Add ispfchar_c() and strisldh_rfc1035_c(), and use them instead of their pattern#1469
Open
alejandro-colomar wants to merge 7 commits into
Open
lib/: Add ispfchar_c() and strisldh_rfc1035_c(), and use them instead of their pattern#1469alejandro-colomar wants to merge 7 commits into
alejandro-colomar wants to merge 7 commits into
Conversation
f97b10f to
1ead5c6
Compare
8fd9e48 to
d39008c
Compare
stoeckmann
suggested changes
Jan 2, 2026
e371b46 to
000c8c1
Compare
stoeckmann
previously requested changes
Jan 3, 2026
000c8c1 to
ed15a3c
Compare
ed15a3c to
42b2e85
Compare
d3f1d69 to
4f120ee
Compare
15452a8 to
0d55459
Compare
0d55459 to
4d0acb9
Compare
4d0acb9 to
604fb99
Compare
This function returns true if the input character is a character from the POSIX portable filename character set. Link: <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_265> Signed-off-by: Alejandro Colomar <alx@kernel.org>
604fb99 to
787abbf
Compare
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
In the first case, we can do the transformation because a few lines above, we explicitly reject a name starting with a '-'. In the second case, we're obviously using ispfchar_c() instead of its pattern. Signed-off-by: Alejandro Colomar <alx@kernel.org>
787abbf to
721567e
Compare
This is in preparation for the next commit. Signed-off-by: Alejandro Colomar <alx@kernel.org>
Link: <https://datatracker.ietf.org/doc/html/rfc1035#section-2.3.1> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Revisions:
v2
v2b
v3
v3b
v3c
v3d
v3e
v3f
v4
v5
v5b
v5c
v5d
v6
v6b
range-diff
interdiff
v7