diff options
author | 2005-11-17 18:14:12 +0000 | |
---|---|---|
committer | 2005-11-17 18:14:12 +0000 | |
commit | 7dd67d45b2ff1bad6275cca3aa8c950a82a62325 (patch) | |
tree | b8b51f88939bf4cd939e4d545b57b2b094e9cfee | |
parent | indent; (diff) | |
download | wireguard-openbsd-7dd67d45b2ff1bad6275cca3aa8c950a82a62325.tar.xz wireguard-openbsd-7dd67d45b2ff1bad6275cca3aa8c950a82a62325.zip |
yet another output fix;
-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); |