handle sha*sum's leading \ in checksum with certian unsual filenames

* Bugfix: Remove leading \ from checksums output by sha*sum commands,
  when the filename contains \ or a newline. Closes: #696384
* fsck: Still accept checksums with a leading \ as valid, now that
  above bug is fixed.
* migrate: Remove leading \ in checksums
This commit is contained in:
Joey Hess 2012-12-20 15:43:14 -04:00
parent 071adb0709
commit e71f85645e
6 changed files with 36 additions and 6 deletions

View file

@ -24,6 +24,7 @@ backend = Backend
{ name = "URL"
, getKey = const $ return Nothing
, fsckKey = Nothing
, canUpgradeKey = Nothing
}
fromUrl :: String -> Maybe Integer -> Key