diff options
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/server.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c index d47fad5b3e5..f90f08706b5 100644 --- a/usr.bin/cvs/server.c +++ b/usr.bin/cvs/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.73 2007/11/09 16:27:38 tobias Exp $ */ +/* $OpenBSD: server.c,v 1.74 2008/01/10 09:59:23 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -637,15 +637,7 @@ cvs_server_log(char *data) void cvs_server_rlog(char *data) { - char fpath[MAXPATHLEN]; - struct cvsroot *cvsroot; - - cvsroot = cvsroot_get(NULL); - - (void)xsnprintf(fpath, MAXPATHLEN, "%s/%s", - cvsroot->cr_dir, server_currentdir); - - if (chdir(fpath) == -1) + if (chdir(current_cvsroot->cr_dir) == -1) fatal("cvs_server_rlog: %s", strerror(errno)); cvs_cmdop = CVS_OP_RLOG; |