version 1.56, 2007/05/25 21:58:00 |
version 1.57, 2007/05/25 22:27:02 |
|
|
char *sp, *ep; |
char *sp, *ep; |
struct cvs_resp *resp; |
struct cvs_resp *resp; |
|
|
sp = data; |
if ((sp = data) == NULL) |
|
fatal("Missing argument for Valid-responses"); |
|
|
do { |
do { |
if ((ep = strchr(sp, ' ')) != NULL) |
if ((ep = strchr(sp, ' ')) != NULL) |
*ep = '\0'; |
*ep = '\0'; |
|
|
FILE *fp; |
FILE *fp; |
char tagpath[MAXPATHLEN]; |
char tagpath[MAXPATHLEN]; |
|
|
|
if (data == NULL) |
|
fatal("Missing argument for Sticky"); |
|
|
(void)xsnprintf(tagpath, MAXPATHLEN, "%s/%s", |
(void)xsnprintf(tagpath, MAXPATHLEN, "%s/%s", |
server_currentdir, CVS_PATH_TAG); |
server_currentdir, CVS_PATH_TAG); |
|
|
|
|
void |
void |
cvs_server_globalopt(char *data) |
cvs_server_globalopt(char *data) |
{ |
{ |
|
if (data == NULL) |
|
fatal("Missing argument for Global_option"); |
|
|
if (!strcmp(data, "-l")) |
if (!strcmp(data, "-l")) |
cvs_nolog = 1; |
cvs_nolog = 1; |
|
|
|
|
{ |
{ |
char *ep; |
char *ep; |
|
|
|
if (data == NULL) |
|
fatal("Missing argument for Set"); |
|
|
ep = strchr(data, '='); |
ep = strchr(data, '='); |
if (ep == NULL) |
if (ep == NULL) |
fatal("no = in variable assignment"); |
fatal("no = in variable assignment"); |
|
|
{ |
{ |
CVSENTRIES *entlist; |
CVSENTRIES *entlist; |
|
|
|
if (data == NULL) |
|
fatal("Missing argument for Entry"); |
|
|
entlist = cvs_ent_open(server_currentdir); |
entlist = cvs_ent_open(server_currentdir); |
cvs_ent_add(entlist, data); |
cvs_ent_add(entlist, data); |
cvs_ent_close(entlist, ENT_SYNC); |
cvs_ent_close(entlist, ENT_SYNC); |
|
|
const char *errstr; |
const char *errstr; |
char *mode, *len, fpath[MAXPATHLEN]; |
char *mode, *len, fpath[MAXPATHLEN]; |
|
|
|
if (data == NULL) |
|
fatal("Missing argument for Modified"); |
|
|
mode = cvs_remote_input(); |
mode = cvs_remote_input(); |
len = cvs_remote_input(); |
len = cvs_remote_input(); |
|
|
|
|
struct cvs_ent *ent; |
struct cvs_ent *ent; |
struct timeval tv[2]; |
struct timeval tv[2]; |
|
|
|
if (data == NULL) |
|
fatal("Missing argument for Unchanged"); |
|
|
(void)xsnprintf(fpath, MAXPATHLEN, "%s/%s", server_currentdir, data); |
(void)xsnprintf(fpath, MAXPATHLEN, "%s/%s", server_currentdir, data); |
|
|
if ((fd = open(fpath, O_RDWR | O_CREAT | O_TRUNC)) == -1) |
if ((fd = open(fpath, O_RDWR | O_CREAT | O_TRUNC)) == -1) |
|
|
|
|
if (server_argc > CVS_CMD_MAXARG) |
if (server_argc > CVS_CMD_MAXARG) |
fatal("cvs_server_argument: too many arguments sent"); |
fatal("cvs_server_argument: too many arguments sent"); |
|
|
|
if (data == NULL) |
|
fatal("Missing argument for Argument"); |
|
|
server_argv[server_argc++] = xstrdup(data); |
server_argv[server_argc++] = xstrdup(data); |
} |
} |