summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/server.c')
-rw-r--r--usr.bin/cvs/server.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c
index 6552c7cc686..5045d5b159b 100644
--- a/usr.bin/cvs/server.c
+++ b/usr.bin/cvs/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.18 2005/05/31 08:58:48 xsa Exp $ */
+/* $OpenBSD: server.c,v 1.19 2005/07/23 10:59:47 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -100,11 +100,8 @@ cvs_server(int argc, char **argv)
return (CVS_EX_FILE);
}
- if (chdir(cvs_server_tmpdir) == -1) {
- cvs_log(LP_ERRNO, "failed to change to temporary directory '%s'",
- cvs_server_tmpdir);
+ if (cvs_chdir(cvs_server_tmpdir) == -1)
return (CVS_EX_FILE);
- }
for (;;) {
if (fgets(reqbuf, sizeof(reqbuf), stdin) == NULL) {