]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
If an RCS file is truncated, rcsfile_getdelta() will return NULL. Instead
authorjhb <jhb@FreeBSD.org>
Thu, 30 Sep 2010 14:28:48 +0000 (14:28 +0000)
committerjhb <jhb@FreeBSD.org>
Thu, 30 Sep 2010 14:28:48 +0000 (14:28 +0000)
commitcc806ac0f293790421a14e8a683e4311220ce5a7
tree8424cb71328d819abe9dff490c5772fa08ee96d6
parenta02f9edef384f097b928bdd31973bd76829e48bf
If an RCS file is truncated, rcsfile_getdelta() will return NULL.  Instead
of faulting, check for NULL.  However, returning an error would cause csup
to just abort the entire update.  Instead, break out of the loop and
return ok.  The attempts to update the file will trigger a MD5 failure which
will cause csup to download the entire file as a fixup.

Reviewed by: lulf
MFC after: 1 week
usr.bin/csup/rcsparse.c