Searched refs:hmagicpath (Results 1 - 1 of 1) sorted by relevance

/freebsd-10.0-release/contrib/file/
H A Dmagic.c92 char *home, *hmagicpath; local
104 if (asprintf(&hmagicpath, "%s/.magic", home) < 0)
106 if (stat(hmagicpath, &st) == -1)
109 free(hmagicpath);
110 if (asprintf(&hmagicpath, "%s/%s", home, hmagic) < 0)
112 if (access(hmagicpath, R_OK) == -1)
116 if (asprintf(&default_magic, "%s:%s", hmagicpath, MAGIC) < 0)
118 free(hmagicpath);
122 free(hmagicpath);
125 char *hmagicp = hmagicpath;
[all...]

Completed in 39 milliseconds