fsck: Fix reversion in 8.20200226 that made it incorrectly warn that hashed keys with an extension should be upgraded.
This commit is contained in:
parent
6222277179
commit
bbe977a2b6
3 changed files with 11 additions and 1 deletions
|
@ -157,7 +157,8 @@ keyHash = fst . splitKeyNameExtension
|
|||
validInExtension :: Word8 -> Bool
|
||||
validInExtension c
|
||||
| isAlphaNum (chr (fromIntegral c)) = True
|
||||
| c <= 127 = False -- other ascii, spaces, punctuation, control chars
|
||||
| fromIntegral c == ord '.' = True
|
||||
| c <= 127 = False -- other ascii: spaces, punctuation, control chars
|
||||
| otherwise = True -- utf8 is allowed, also other encodings
|
||||
|
||||
{- Upgrade keys that have the \ prefix on their hash due to a bug, or
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue