summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2005-11-17 18:14:12 +0000
committerxsa <xsa@openbsd.org>2005-11-17 18:14:12 +0000
commit7dd67d45b2ff1bad6275cca3aa8c950a82a62325 (patch)
treeb8b51f88939bf4cd939e4d545b57b2b094e9cfee
parentindent; (diff)
downloadwireguard-openbsd-7dd67d45b2ff1bad6275cca3aa8c950a82a62325.tar.xz
wireguard-openbsd-7dd67d45b2ff1bad6275cca3aa8c950a82a62325.zip
yet another output fix;
-rw-r--r--usr.bin/rcs/rcsclean.c13
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);