=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/util.c,v retrieving revision 1.124 retrieving revision 1.125 diff -u -r1.124 -r1.125 --- src/usr.bin/cvs/util.c 2008/01/10 10:09:27 1.124 +++ src/usr.bin/cvs/util.c 2008/01/21 16:36:46 1.125 @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.124 2008/01/10 10:09:27 tobias Exp $ */ +/* $OpenBSD: util.c,v 1.125 2008/01/21 16:36:46 tobias Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * Copyright (c) 2005, 2006 Joris Vink @@ -505,7 +505,8 @@ } } } else { - if (cvs_cmdop != CVS_OP_CHECKOUT) { + if ((cvs_cmdop == CVS_OP_EXPORT && strcmp(dir, ".")) || + cvs_cmdop != CVS_OP_CHECKOUT) { if (strlcat(dst, dir, len) >= len) fatal("cvs_get_repository_name: " "truncation"); @@ -615,6 +616,9 @@ if (mkdir(rpath, 0755) == -1 && errno != EEXIST) fatal("cvs_mkpath: %s: %s", rpath, strerror(errno)); + + if (cvs_cmdop == CVS_OP_EXPORT && !cvs_server_active) + continue; cvs_mkadmin(rpath, current_cvsroot->cr_str, repo, tag, NULL, 0);