[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.39 and 1.40

version 1.39, 2015/05/28 19:26:37 version 1.40, 2015/05/29 07:30:28
Line 174 
Line 174 
                 if (home != NULL) {                  if (home != NULL) {
                         xasprintf(&magicpath, "%s/.magic", home);                          xasprintf(&magicpath, "%s/.magic", home);
                         magicfp = fopen(magicpath, "r");                          magicfp = fopen(magicpath, "r");
                         if (magicfp == NULL && errno != ENOENT)  
                                 err(1, "%s", magicpath);  
                         if (magicfp == NULL)                          if (magicfp == NULL)
                                 free(magicpath);                                  free(magicpath);
                 }                  }

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40