From 4a962f06144b6226adb3f9260c2f6970355ff3ca Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Wed, 26 Oct 2005 09:53:36 +0000 Subject: correct -R behaviour; --- usr.bin/rcs/rlog.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'usr.bin/rcs/rlog.c') 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 * 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); } -- cgit v1.2.3