summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-11-16 11:42:04 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-11-16 11:42:04 +0000
commitb3a60fd52c5e08fcc358e3574480d981ba5b50cd (patch)
treedcb7b34aea6c5f8ad8a689e8b4fda2bf2cf20d36 /usr.bin
parenta08ff6615a6526336cf29b2d59b7178417a42c41 (diff)
fix output if file is not locked;
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rcs/rcsclean.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsclean.c b/usr.bin/rcs/rcsclean.c
index 81f0e00ead3..49ad76b19bb 100644
--- a/usr.bin/rcs/rcsclean.c
+++ b/usr.bin/rcs/rcsclean.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsclean.c,v 1.12 2005/11/02 11:01:40 xsa Exp $ */
+/* $OpenBSD: rcsclean.c,v 1.13 2005/11/16 11:42:03 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -179,7 +179,7 @@ rcsclean_file(char *fname, RCSNUM *rev)
free(c2);
if (match == 1) {
- if (uflag == 1) {
+ if ((uflag == 1) && (!TAILQ_EMPTY(&(file->rf_locks)))) {
if ((verbose == 1) && (nflag == 0)) {
printf("rcs -u%s %s\n",
rcsnum_tostr(frev, numb, sizeof(numb)),