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

@ -20,6 +20,7 @@ backend = Backend
{ name = "WORM"
, getKey = keyValue
, fsckKey = Nothing
, canUpgradeKey = Nothing
}
{- The key includes the file size, modification time, and the