version 1.109, 2005/07/29 17:04:42 |
version 1.110, 2005/07/30 21:16:17 |
|
|
if (ifp == NULL) { |
if (ifp == NULL) { |
if (errno != ENOENT) |
if (errno != ENOENT) |
cvs_log(LP_ERRNO, |
cvs_log(LP_ERRNO, |
"failed to open user's cvsignore", path); |
"failed to open user's cvsignore file " |
|
"`%s'", path); |
} else { |
} else { |
while (fgets(buf, sizeof(buf), ifp) != NULL) { |
while (fgets(buf, sizeof(buf), ifp) != NULL) { |
len = strlen(buf); |
len = strlen(buf); |
|
|
int fd, l; |
int fd, l; |
char fp[MAXPATHLEN], repo[MAXPATHLEN]; |
char fp[MAXPATHLEN], repo[MAXPATHLEN]; |
CVSFILE *cfp; |
CVSFILE *cfp; |
CVSENTRIES *ent; |
|
|
|
cfp = cvs_file_alloc(path, type); |
cfp = cvs_file_alloc(path, type); |
if (cfp == NULL) |
if (cfp == NULL) |
|
|
(cvs_mkadmin(path, cfp->cf_root->cr_str, cfp->cf_repo) < 0)) { |
(cvs_mkadmin(path, cfp->cf_root->cr_str, cfp->cf_repo) < 0)) { |
cvs_file_free(cfp); |
cvs_file_free(cfp); |
return (NULL); |
return (NULL); |
} |
|
|
|
ent = cvs_ent_open(path, O_RDWR); |
|
if (ent != NULL) { |
|
cvs_ent_close(ent); |
|
} |
} |
} else { |
} else { |
fd = open(path, O_WRONLY|O_CREAT|O_EXCL, mode); |
fd = open(path, O_WRONLY|O_CREAT|O_EXCL, mode); |