=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/client.c,v retrieving revision 1.47 retrieving revision 1.48 diff -c -r1.47 -r1.48 *** src/usr.bin/cvs/client.c 2007/01/16 09:14:19 1.47 --- src/usr.bin/cvs/client.c 2007/01/17 17:54:50 1.48 *************** *** 1,4 **** ! /* $OpenBSD: client.c,v 1.47 2007/01/16 09:14:19 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: client.c,v 1.48 2007/01/17 17:54:50 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 61,67 **** /* commands that might be supported */ { "ci", 0, cvs_server_commit, 0 }, ! { "co", 0, NULL, 0 }, { "update", 0, cvs_server_update, 0 }, { "diff", 0, cvs_server_diff, 0 }, { "log", 0, cvs_server_log, 0 }, --- 61,67 ---- /* commands that might be supported */ { "ci", 0, cvs_server_commit, 0 }, ! { "co", 0, cvs_server_checkout, 0 }, { "update", 0, cvs_server_update, 0 }, { "diff", 0, cvs_server_diff, 0 }, { "log", 0, cvs_server_log, 0 }, *************** *** 631,636 **** --- 631,638 ---- repo = xmalloc(MAXPATHLEN); cvs_get_repository_path(".", repo, MAXPATHLEN); + + STRIP_SLASH(repo); if (strlen(repo) + 1 > strlen(rpath)) fatal("received a repository path that is too short");