diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-12-24 19:07:53 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-12-24 19:07:53 +0000 |
commit | 2b13d70f1a07f04c738b10a08c370ae26e34563e (patch) | |
tree | 78a7826d60f3195ceca44305d9a00a5e647f5f38 /usr.bin/cvs/req.c | |
parent | 2a5186542c0004c0dc3aecc03c9fca5308018e01 (diff) |
add an argument to cvs_chdir() which enables or not the removal
of the directory we just chdir'd to.
Useful when the function fails especially for the server mode and
its temporary directory. This way it's not left behind on exit.
ok joris@.
Diffstat (limited to 'usr.bin/cvs/req.c')
-rw-r--r-- | usr.bin/cvs/req.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/req.c b/usr.bin/cvs/req.c index 35baf600d76..ea9237959c3 100644 --- a/usr.bin/cvs/req.c +++ b/usr.bin/cvs/req.c @@ -1,4 +1,4 @@ -/* $OpenBSD: req.c,v 1.37 2005/12/22 14:31:44 xsa Exp $ */ +/* $OpenBSD: req.c,v 1.38 2005/12/24 19:07:52 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -282,7 +282,7 @@ cvs_req_directory(int reqid, char *line) * Lets make sure we always start at the correct * directory. */ - cvs_chdir(cvs_server_tmpdir); + cvs_chdir(cvs_server_tmpdir, 1); /* * Set repository path. @@ -609,7 +609,7 @@ cvs_req_command(int reqid, char *line) /* switch to the correct directory */ if (cmdp->cmd_op != CVS_OP_VERSION) - cvs_chdir(cvs_server_tmpdir); + cvs_chdir(cvs_server_tmpdir, 1); ret = cvs_startcmd(cmdp, cvs_req_nargs, cvs_req_args); |