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

Diff for /src/usr.bin/rdist/client.c between version 1.36 and 1.37

version 1.36, 2017/07/09 14:04:50 version 1.37, 2019/06/28 13:35:03
Line 391 
Line 391 
                         return(sendhardlink(opts, lp, rname, destdir));                          return(sendhardlink(opts, lp, rname, destdir));
         }          }
   
         if ((f = open(target, O_RDONLY)) < 0) {          if ((f = open(target, O_RDONLY)) == -1) {
                 error("%s: open for read failed: %s", target, SYSERR);                  error("%s: open for read failed: %s", target, SYSERR);
                 return(-1);                  return(-1);
         }          }
Line 529 
Line 529 
                         debugmsg(DM_MISC, "check %s\n", target);                          debugmsg(DM_MISC, "check %s\n", target);
                         if (except(target))                          if (except(target))
                                 (void) sendcmd(CC_NO, NULL);                                  (void) sendcmd(CC_NO, NULL);
                         else if (lstat(target, &stb) < 0) {                          else if (lstat(target, &stb) == -1) {
                                 if (sendcmd(CC_YES, NULL) == 0)                                  if (sendcmd(CC_YES, NULL) == 0)
                                         didupdate = 1;                                          didupdate = 1;
                         } else                          } else
Line 1027 
Line 1027 
         else          else
                 s = lstat(file, statbuf);                  s = lstat(file, statbuf);
   
         if (s < 0)          if (s == -1)
                 error("%s: %s failed: %s", file,                  error("%s: %s failed: %s", file,
                       IS_ON(opts, DO_FOLLOW) ? "stat" : "lstat", SYSERR);                        IS_ON(opts, DO_FOLLOW) ? "stat" : "lstat", SYSERR);
         return(s);          return(s);

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37