diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-01-17 22:39:51 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-01-17 22:39:51 +0000 |
commit | a777a55ef56e44cda608b2c05754b3ee7d88d710 (patch) | |
tree | faaa9cd2378f1cbf4c1700ece8d979fd24410a09 | |
parent | 1f6858d489b020b4410ab88fdc7a04abd274efe7 (diff) |
on checkout, only create the module path if we find the module.
Also make error ouput match GNU CVS.
ok joris@
-rw-r--r-- | usr.bin/cvs/checkout.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c index da23f8a377b..32cd28b51f6 100644 --- a/usr.bin/cvs/checkout.c +++ b/usr.bin/cvs/checkout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: checkout.c,v 1.80 2007/01/17 20:38:50 xsa Exp $ */ +/* $OpenBSD: checkout.c,v 1.81 2007/01/17 22:39:50 thib Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -158,18 +158,16 @@ checkout_check_repository(int argc, char **argv) } for (i = 0; i < argc; i++) { - cvs_mkpath(argv[i]); - if (cvs_path_cat(current_cvsroot->cr_dir, argv[i], repo, sizeof(repo)) >= sizeof(repo)) fatal("checkout_check_repository: truncation"); if (stat(repo, &st) == -1) { - cvs_log(LP_ERR, "cannot find repository %s - ignored", + cvs_log(LP_ERR, "cannot find module `%s' - ignored", argv[i]); continue; } - + cvs_mkpath(argv[i]); checkout_repository(repo, argv[i]); } } |