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

Diff for /src/usr.bin/file/file.c between version 1.27 and 1.28

version 1.27, 2015/04/24 16:24:11 version 1.28, 2015/04/24 16:28:00
Line 154 
Line 154 
         if (home != NULL) {          if (home != NULL) {
                 xasprintf(&path, "%s/.magic", home);                  xasprintf(&path, "%s/.magic", home);
                 f = fopen(path, "r");                  f = fopen(path, "r");
                   if (f == NULL && errno != ENOENT)
                           err(1, "%s", path);
                   if (f == NULL)
                           free(path);
         } else          } else
                 f = NULL;                  f = NULL;
         if (f == NULL) {          if (f == NULL) {

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28