diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-11-16 11:42:04 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-11-16 11:42:04 +0000 |
commit | b3a60fd52c5e08fcc358e3574480d981ba5b50cd (patch) | |
tree | dcb7b34aea6c5f8ad8a689e8b4fda2bf2cf20d36 /usr.bin | |
parent | a08ff6615a6526336cf29b2d59b7178417a42c41 (diff) |
fix output if file is not locked;
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rcs/rcsclean.c | 4 |
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)), |