version 1.69, 2006/01/25 08:15:05 |
version 1.70, 2006/01/26 09:05:31 |
|
|
static int |
static int |
cvs_resp_createdir(char *line) |
cvs_resp_createdir(char *line) |
{ |
{ |
int l; |
|
CVSFILE *base, *cf; |
CVSFILE *base, *cf; |
CVSENTRIES *entf; |
CVSENTRIES *entf; |
struct stat st; |
struct stat st; |
|
|
*/ |
*/ |
if (entf != NULL) { |
if (entf != NULL) { |
if ((ent = cvs_ent_get(entf, cf->cf_name)) == NULL) { |
if ((ent = cvs_ent_get(entf, cf->cf_name)) == NULL) { |
l = snprintf(buf, sizeof(buf), "D/%s////", cf->cf_name); |
if (strlcpy(buf, "D/", sizeof(buf)) >= sizeof(buf) || |
if (l == -1 || l >= (int)sizeof(buf)) { |
strlcat(buf, cf->cf_name, sizeof(buf)) >= |
|
sizeof(buf) || |
|
strlcat(buf, "////", sizeof(buf)) >= sizeof(buf)) { |
cvs_file_free(cf); |
cvs_file_free(cf); |
cvs_file_free(base); |
cvs_file_free(base); |
return (-1); |
return (-1); |