version 1.57, 2007/05/25 22:27:02 |
version 1.58, 2007/05/26 23:19:31 |
|
|
|
|
server_argv[0] = xstrdup("server"); |
server_argv[0] = xstrdup("server"); |
|
|
cvs_server_path = xmalloc(MAXPATHLEN); |
(void)xasprintf(&cvs_server_path, "%s/cvs-serv%d", cvs_tmpdir, |
(void)xsnprintf(cvs_server_path, MAXPATHLEN, "%s/cvs-serv%d", |
getpid()); |
cvs_tmpdir, getpid()); |
|
|
|
if (mkdir(cvs_server_path, 0700) == -1) |
if (mkdir(cvs_server_path, 0700) == -1) |
fatal("failed to create temporary server directory: %s, %s", |
fatal("failed to create temporary server directory: %s, %s", |
|
|
void |
void |
cvs_server_update_entry(const char *resp, struct cvs_file *cf) |
cvs_server_update_entry(const char *resp, struct cvs_file *cf) |
{ |
{ |
char *p, response[MAXPATHLEN]; |
char *p; |
|
|
if ((p = strrchr(cf->file_rpath, ',')) != NULL) |
if ((p = strrchr(cf->file_rpath, ',')) != NULL) |
*p = '\0'; |
*p = '\0'; |
|
|
(void)xsnprintf(response, MAXPATHLEN, "%s %s/", resp, cf->file_wd); |
cvs_server_send_response("%s %s/", resp, cf->file_wd); |
|
|
cvs_server_send_response("%s", response); |
|
cvs_remote_output(cf->file_rpath); |
cvs_remote_output(cf->file_rpath); |
|
|
if (p != NULL) |
if (p != NULL) |