If CVS_LOCK_REPO is set only attempt to unlock the repo if we're local.
authorjoris <joris@openbsd.org>
Thu, 1 Jun 2017 08:38:56 +0000 (08:38 +0000)
committerjoris <joris@openbsd.org>
Thu, 1 Jun 2017 08:38:56 +0000 (08:38 +0000)
commitddb8cb02c0badb2465bbd5d0697268bf4d10b217
tree9797a1c11eb3e99a131a49ef8d90b0bd41adda2a
parent4f2efe077d2a5733def96514d9773090c017d6c5
If CVS_LOCK_REPO is set only attempt to unlock the repo if we're local.

Otherwise we end up calling cvs_repository_unlock() with garbage from the
stack if we're dealing with a remote cvsroot.
usr.bin/cvs/file.c