diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-05-27 05:49:15 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-05-27 05:49:15 +0000 |
commit | 21be1db1b7c2070593e7732c1c3d20c574a7845d (patch) | |
tree | 8e2cda7a29306dd5aa527f2feca80a41aa42fc93 /usr.bin/rcs/co.c | |
parent | 43205cef80d4f7ad59a6a71c15a3202e9191ab95 (diff) |
Remove rcs_statfile(). It was just a wrapper for rcs_choosefile(),
handling exceptions oddly.
OK joris@
Diffstat (limited to 'usr.bin/rcs/co.c')
-rw-r--r-- | usr.bin/rcs/co.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c index 4202937c27f..914880d8904 100644 --- a/usr.bin/rcs/co.c +++ b/usr.bin/rcs/co.c @@ -1,4 +1,4 @@ -/* $OpenBSD: co.c,v 1.91 2006/05/17 19:37:40 xsa Exp $ */ +/* $OpenBSD: co.c,v 1.92 2006/05/27 05:49:14 ray Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -151,9 +151,11 @@ checkout_main(int argc, char **argv) err(1, "getlogin"); for (i = 0; i < argc; i++) { - fd = rcs_statfile(argv[i], fpath, sizeof(fpath), flags); - if (fd < 0) + fd = rcs_choosefile(argv[i], fpath, sizeof(fpath)); + if (fd < 0) { + warnx("%s", fpath); continue; + } if (!(flags & QUIET)) (void)fprintf(stderr, "%s --> %s\n", fpath, |