[BACK]Return to util.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/util.c between version 1.46 and 1.47

version 1.46, 2005/07/27 10:38:01 version 1.47, 2005/07/27 19:24:14
Line 445 
Line 445 
         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);
Line 460 
Line 460 
         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);

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47