diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-11-17 18:14:13 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-11-17 18:14:13 +0000 |
commit | 8d71a56470768f164c801001717e8e05bca87e80 (patch) | |
tree | f6341bfe8c69a585f166a6bc58afe2dcdd8915fb /usr.bin | |
parent | b773329d12f46b25ae8dacabd1fe90cd218d19f9 (diff) |
yet another output fix;
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rcs/rcsclean.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.bin/rcs/rcsclean.c b/usr.bin/rcs/rcsclean.c index 49ad76b19bb..0a5e3c55b68 100644 --- a/usr.bin/rcs/rcsclean.c +++ b/usr.bin/rcs/rcsclean.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsclean.c,v 1.13 2005/11/16 11:42:03 xsa Exp $ */ +/* $OpenBSD: rcsclean.c,v 1.14 2005/11/17 18:14:12 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -185,15 +185,16 @@ rcsclean_file(char *fname, RCSNUM *rev) rcsnum_tostr(frev, numb, sizeof(numb)), fpath); } - (void)rcs_lock_remove(file, frev); } - if (verbose == 1) - printf("rm -f %s\n", fname); + if (TAILQ_EMPTY(&(file->rf_locks))) { + if (verbose == 1) + printf("rm -f %s\n", fname); - if ((nflag == 0) && (TAILQ_EMPTY(&(file->rf_locks)))) - (void)unlink(fname); + if (nflag == 0) + (void)unlink(fname); + } } rcs_close(file); |