Commit 620cadd
committed
Remove magic_file API
We introduced this API to be able to use it ourselves, but as it turns out we
don't need it, and we don't want to expose a public API unnecessarily, because
we can never "take it back". Also the `MAGIC` environment variable works well for
libmagic if someone wants to control the magic database, so this API might not
even be needed.
The problem we were trying to solve to use the same magic database on different
systems, but that turned out impossible to do, because the magic database format
breaks between every version, so the only way to use libmagic is to use the same
version of the magic database, which is usually the one shipped with the system.1 parent e26dc7c commit 620cadd
1 file changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
212 | 211 | | |
213 | 212 | | |
214 | 213 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 214 | + | |
| 215 | + | |
221 | 216 | | |
222 | 217 | | |
223 | 218 | | |
| |||
0 commit comments