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

Diff for /src/usr.bin/find/function.c between version 1.41 and 1.42

version 1.41, 2014/05/18 08:10:00 version 1.42, 2015/01/16 06:40:07
Line 32 
Line 32 
  * SUCH DAMAGE.   * SUCH DAMAGE.
  */   */
   
 #include <sys/param.h>  
 #include <sys/ucred.h>  
 #include <sys/stat.h>  #include <sys/stat.h>
 #include <sys/wait.h>  #include <sys/wait.h>
 #include <sys/mount.h>  #include <sys/mount.h>
Line 575 
Line 573 
                         for (p = *argv; *p; ++p)                          for (p = *argv; *p; ++p)
                                 if (p[0] == '{' && p[1] == '}') {                                  if (p[0] == '{' && p[1] == '}') {
                                         new->e_argv[cnt] =                                          new->e_argv[cnt] =
                                                 emalloc((u_int)MAXPATHLEN);                                                  emalloc((u_int)PATH_MAX);
                                         new->e_len[cnt] = MAXPATHLEN;                                          new->e_len[cnt] = PATH_MAX;
                                         break;                                          break;
                                 }                                  }
                         if (!*p) {                          if (!*p) {
Line 607 
Line 605 
         int cnt;          int cnt;
         pid_t pid;          pid_t pid;
         int status, fd;          int status, fd;
         char base[MAXPATHLEN];          char base[PATH_MAX];
   
         /* fts(3) does not chdir for the root level so we do it ourselves. */          /* fts(3) does not chdir for the root level so we do it ourselves. */
         if (entry->fts_level == FTS_ROOTLEVEL) {          if (entry->fts_level == FTS_ROOTLEVEL) {
Line 693 
Line 691 
                 new->e_orig[cnt] = *argv;                  new->e_orig[cnt] = *argv;
                 for (p = *argv; *p; ++p)                  for (p = *argv; *p; ++p)
                         if (p[0] == '{' && p[1] == '}') {                          if (p[0] == '{' && p[1] == '}') {
                                 new->e_argv[cnt] = emalloc((u_int)MAXPATHLEN);                                  new->e_argv[cnt] = emalloc((u_int)PATH_MAX);
                                 new->e_len[cnt] = MAXPATHLEN;                                  new->e_len[cnt] = PATH_MAX;
                                 break;                                  break;
                         }                          }
                 if (!*p) {                  if (!*p) {

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42