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

Diff for /src/usr.bin/file/Attic/apprentice.c between version 1.31 and 1.32

version 1.31, 2014/05/18 17:50:11 version 1.32, 2014/10/26 04:10:26
Line 642 
Line 642 
         if (stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) {          if (stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) {
                 dir = opendir(fn);                  dir = opendir(fn);
                 if (dir) {                  if (dir) {
                         while (d = readdir(dir)) {                          while ((d = readdir(dir)) != NULL) {
                                 snprintf(subfn, sizeof(subfn), "%s/%s",                                  snprintf(subfn, sizeof(subfn), "%s/%s",
                                     fn, d->d_name);                                      fn, d->d_name);
                                 if (stat(subfn, &st) == 0 && S_ISREG(st.st_mode)) {                                  if (stat(subfn, &st) == 0 && S_ISREG(st.st_mode)) {

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32