version 1.46, 2005/07/27 10:38:01 |
version 1.47, 2005/07/27 19:24:14 |
|
|
if (l >= sizeof(path)) |
if (l >= sizeof(path)) |
return (-1); |
return (-1); |
|
|
if ((stat(path, &st) != 0) && (errno == ENOENT)) { |
if ((stat(path, &st) == -1) && (errno == ENOENT)) { |
fp = fopen(path, "w"); |
fp = fopen(path, "w"); |
if (fp == NULL) { |
if (fp == NULL) { |
cvs_log(LP_ERRNO, "failed to open %s", path); |
cvs_log(LP_ERRNO, "failed to open %s", path); |
|
|
if (l >= sizeof(path)) |
if (l >= sizeof(path)) |
return (-1); |
return (-1); |
|
|
if ((stat(path, &st) != 0) && (errno == ENOENT)) { |
if ((stat(path, &st) == -1) && (errno == ENOENT)) { |
fp = fopen(path, "w"); |
fp = fopen(path, "w"); |
if (fp == NULL) { |
if (fp == NULL) { |
cvs_log(LP_ERRNO, "failed to open %s", path); |
cvs_log(LP_ERRNO, "failed to open %s", path); |