version 1.21, 2014/01/08 13:23:55 |
version 1.22, 2015/01/16 06:40:07 |
|
|
regex_t preg; |
regex_t preg; |
struct trigger_list *list; |
struct trigger_list *list; |
struct trigger_line *tline; |
struct trigger_line *tline; |
char fpath[MAXPATHLEN]; |
char fpath[PATH_MAX]; |
char *currentline, *defaultline = NULL, *nline, *p, *q, *regex; |
char *currentline, *defaultline = NULL, *nline, *p, *q, *regex; |
|
|
if (strcmp(file, CVS_PATH_EDITINFO) == 0 || |
if (strcmp(file, CVS_PATH_EDITINFO) == 0 || |
|
|
else |
else |
allow_all = 1; |
allow_all = 1; |
|
|
(void)xsnprintf(fpath, MAXPATHLEN, "%s/%s", current_cvsroot->cr_dir, |
(void)xsnprintf(fpath, PATH_MAX, "%s/%s", current_cvsroot->cr_dir, |
file); |
file); |
|
|
if ((fp = fopen(fpath, "r")) == NULL) { |
if ((fp = fopen(fpath, "r")) == NULL) { |
|
|
void |
void |
cvs_trigger_loginfo_header(BUF *buf, char *repo) |
cvs_trigger_loginfo_header(BUF *buf, char *repo) |
{ |
{ |
char *dir, pwd[MAXPATHLEN]; |
char *dir, pwd[PATH_MAX]; |
char hostname[MAXHOSTNAMELEN]; |
char hostname[HOST_NAME_MAX+1]; |
|
|
if (gethostname(hostname, sizeof(hostname)) == -1) { |
if (gethostname(hostname, sizeof(hostname)) == -1) { |
fatal("cvs_trigger_loginfo_header: gethostname failed %s", |
fatal("cvs_trigger_loginfo_header: gethostname failed %s", |