diff options
author | cperciva <cperciva@FreeBSD.org> | 2009-10-30 11:13:00 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2009-10-30 11:13:00 +0000 |
commit | 299d516f334b9397f646f5202871d276dd2537ee (patch) | |
tree | abbcebc8d436ffb412caed6760ee6b961faa8091 /usr.bin/bsdiff/bspatch | |
parent | f2a32c79ab8801e28a77d82b70d9621cbc93bc1e (diff) | |
download | FreeBSD-src-299d516f334b9397f646f5202871d276dd2537ee.zip FreeBSD-src-299d516f334b9397f646f5202871d276dd2537ee.tar.gz |
Add notes pointing out that bsdiff does not store file hashes and
bspatch thus does not verify file hashes, and that consequently it
is recommended that users store hashes separately and verify files
before and after running bspatch.
Requested by: BugMagnet
MFC after: 1 week
Diffstat (limited to 'usr.bin/bsdiff/bspatch')
-rw-r--r-- | usr.bin/bsdiff/bspatch/bspatch.1 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/usr.bin/bsdiff/bspatch/bspatch.1 b/usr.bin/bsdiff/bspatch/bspatch.1 index 894bc50..29b8db3 100644 --- a/usr.bin/bsdiff/bspatch/bspatch.1 +++ b/usr.bin/bsdiff/bspatch/bspatch.1 @@ -61,5 +61,26 @@ but can tolerate a very small working set without a dramatic loss of performance. .Sh SEE ALSO .Xr bsdiff 1 +.Sh BUGS +The +.Nm +utility does not verify that +.Ar oldfile +is the correct source file for +.Ar patchfile . +Attempting to apply a patch to the wrong file will usually produce +garbage; consequently it is strongly recommended that users of +.Nm +verify that +.Ar oldfile +matches the source file from which +.Ar patchfile +was built, by comparing cryptographic hashes, for example. +Users may also wish to verify after running +.Nm +that +.Ar newfile +matches the target file from which +.Ar was built. .Sh AUTHORS .An Colin Percival Aq cperciva@FreeBSD.org |