summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rlog.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-10-26 09:53:36 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-10-26 09:53:36 +0000
commit4a962f06144b6226adb3f9260c2f6970355ff3ca (patch)
tree67d105e83b6d3861af21ec05349fdee4c93a645f /usr.bin/rcs/rlog.c
parent51d04588b0060f5bc386e2154fe1d5fc733f24e1 (diff)
correct -R behaviour;
Diffstat (limited to 'usr.bin/rcs/rlog.c')
-rw-r--r--usr.bin/rcs/rlog.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/rcs/rlog.c b/usr.bin/rcs/rlog.c
index d6f0246964e..548c4d8814e 100644
--- a/usr.bin/rcs/rlog.c
+++ b/usr.bin/rcs/rlog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rlog.c,v 1.8 2005/10/25 17:19:31 xsa Exp $ */
+/* $OpenBSD: rlog.c,v 1.9 2005/10/26 09:53:35 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -105,11 +105,16 @@ rlog_main(int argc, char **argv)
if (rcs_statfile(argv[i], fpath, sizeof(fpath)) < 0)
continue;
+ if (Rflag == 1) {
+ printf("%s\n", fpath);
+ continue;
+ }
+
if ((file = rcs_open(fpath, RCS_READ)) == NULL)
continue;
- if (Rflag == 0)
- rlog_file(argv[i], fpath, file);
+ rlog_file(argv[i], fpath, file);
+
rcs_close(file);
}