Commit d39008c
committed
lib/chkname.c: is_valid_name(): Use ispfchar() to simplify
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() instead of its
pattern.
Signed-off-by: Alejandro Colomar <alx@kernel.org>1 parent 4c7cee7 commit d39008c
1 file changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 91 | + | |
94 | 92 | | |
95 | 93 | | |
96 | 94 | | |
| |||
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 100 | + | |
108 | 101 | | |
109 | 102 | | |
110 | 103 | | |
| |||
0 commit comments