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

Diff for /src/usr.bin/find/misc.c between version 1.15 and 1.16

version 1.15, 2015/07/14 17:18:48 version 1.16, 2017/12/08 17:04:15
Line 148 
Line 148 
 {  {
         int save_errno = errno;          int save_errno = errno;
         extern FTSENT *entry;          extern FTSENT *entry;
         struct iovec iov[3];  
   
         if (entry != NULL) {          if (entry != NULL) {
                 iov[0].iov_base = "find path: ";                  dprintf(STDERR_FILENO, "find path: %*s\n",
                 iov[0].iov_len = strlen(iov[0].iov_base);                      entry->fts_pathlen, entry->fts_path);
                 iov[1].iov_base = entry->fts_path;  
                 iov[1].iov_len = entry->fts_pathlen;  
                 iov[2].iov_base = "\n";  
                 iov[2].iov_len = strlen(iov[2].iov_base);  
                 writev(STDERR_FILENO, iov, 3);  
                 errno = save_errno;                  errno = save_errno;
         }          }
 }  }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16