=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/root.c,v retrieving revision 1.44 retrieving revision 1.45 diff -u -r1.44 -r1.45 --- src/usr.bin/cvs/root.c 2007/10/05 19:28:23 1.44 +++ src/usr.bin/cvs/root.c 2008/06/20 23:00:13 1.45 @@ -1,4 +1,4 @@ -/* $OpenBSD: root.c,v 1.44 2007/10/05 19:28:23 gilles Exp $ */ +/* $OpenBSD: root.c,v 1.45 2008/06/20 23:00:13 tobias Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -173,6 +173,9 @@ if (cvs_server_active == 1) return cvsroot_parse(dir); + + if (cvs_cmdop == CVS_OP_IMPORT) + return NULL; (void)xsnprintf(rootpath, MAXPATHLEN, "%s/%s", dir, CVS_PATH_ROOTSPEC);