diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-03-27 13:07:38 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-03-27 13:07:38 +0000 |
commit | c902506f243fb99d24b61b2abef5475bcb219d59 (patch) | |
tree | af873d09204f3d476c5654e68273315d2221e058 /usr.bin/rcs/ci.c | |
parent | 71708e34a2da9bce144c5a7858ed9b686e33c22d (diff) |
check rcs_lock_remove() return value; OK ray@ niallo@.
Diffstat (limited to 'usr.bin/rcs/ci.c')
-rw-r--r-- | usr.bin/rcs/ci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c index 42c0c0a0754..92078b9f445 100644 --- a/usr.bin/rcs/ci.c +++ b/usr.bin/rcs/ci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ci.c,v 1.126 2006/03/26 12:56:31 niallo Exp $ */ +/* $OpenBSD: ci.c,v 1.127 2006/03/27 13:07:37 xsa Exp $ */ /* * Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org> * All rights reserved. @@ -787,7 +787,9 @@ checkin_revert(struct checkin_params *pb) if ((pb->flags & CO_LOCK) || (pb->flags & CO_UNLOCK)) checkout_rev(pb->file, pb->frev, pb->filename, pb->flags, pb->username, pb->author, NULL, NULL); - rcs_lock_remove(pb->file, pb->username, pb->frev); + if (rcs_lock_remove(pb->file, pb->username, pb->frev) < 0) + if (rcs_errno != RCS_ERR_NOENT) + cvs_log(LP_WARN, "failed to remove lock"); } /* |