diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2007-09-06 19:38:48 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2007-09-06 19:38:48 +0000 |
commit | 2282fafbcae1e0b5a97f77c13efe3665763ced0f (patch) | |
tree | e894436dba1eb3c634790006231212a64fb7ccc7 /usr.bin/rcs | |
parent | de2411e7a633f63c9757989584463766a84e5449 (diff) |
strictly check rcsnum_cmp() return against -1.
fixes a bug in ci -r
from Pierre Riteau <pierre.riteau at free.fr> via ray@
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r-- | usr.bin/rcs/ci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c index a8f3abc0f8a..4b3c79cdd4c 100644 --- a/usr.bin/rcs/ci.c +++ b/usr.bin/rcs/ci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ci.c,v 1.202 2007/07/03 00:56:23 ray Exp $ */ +/* $OpenBSD: ci.c,v 1.203 2007/09/06 19:38:47 niallo Exp $ */ /* * Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org> * All rights reserved. @@ -466,7 +466,7 @@ checkin_update(struct checkin_params *pb) * there is no lock set for the user. */ if (pb->newrev != NULL && - rcsnum_cmp(pb->newrev, pb->frev, 0) > 0) { + rcsnum_cmp(pb->newrev, pb->frev, 0) != -1) { warnx("%s: revision %s too low; must be higher than %s", pb->file->rf_path, rcsnum_tostr(pb->newrev, numb1, sizeof(numb1)), |