aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/filecheck_failing_to_find_files.mdwn
diff options
context:
space:
mode:
authorhttp://kerravonsen.dreamwidth.org/ <http://kerravonsen.dreamwidth.org/@web>2010-03-25 04:43:16 +0000
committerJoey Hess <joey@finch.kitenet.net>2010-03-25 04:43:16 +0000
commit46f8f72793e23b56d3deb1ed0ed6b1a0fbd56ad6 (patch)
tree7416619cfb556798397974ca0d1d8ffb8f0c8580 /doc/bugs/filecheck_failing_to_find_files.mdwn
parent1030d23a2ca1be2680a6fac8366f880a1d1760c6 (diff)
downloadikiwiki-46f8f72793e23b56d3deb1ed0ed6b1a0fbd56ad6.tar
ikiwiki-46f8f72793e23b56d3deb1ed0ed6b1a0fbd56ad6.tar.gz
response
Diffstat (limited to 'doc/bugs/filecheck_failing_to_find_files.mdwn')
-rw-r--r--doc/bugs/filecheck_failing_to_find_files.mdwn7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/bugs/filecheck_failing_to_find_files.mdwn b/doc/bugs/filecheck_failing_to_find_files.mdwn
index e41793ee8..be6cdbb20 100644
--- a/doc/bugs/filecheck_failing_to_find_files.mdwn
+++ b/doc/bugs/filecheck_failing_to_find_files.mdwn
@@ -3,7 +3,12 @@ Using the attachment plugin, when filecheck was checking the mime-type of the at
It turns out that the filecheck plugin couldn't find the file, because it was merely using the $pagesources hash, rather than finding the absolute path of the file in question.
> I don't understand why the file was not in `%pagesources`. Do you?
-> --[[Joey]]
+> --[[Joey]]
+
+>> The file *was* in `%pagesources`, but what returns from that is the filename relative to the `srcdir` directory; for example, `foo/bar.gif`.
+>> When File::MimeInfo::Magic::magic is given that, it can't find the file.
+>> But if it is given `/path/to/srcdir/foo/bar.gif` instead, then it *can* find the file, and returns the mime-type correctly.
+>> --[[KathrynAndersen]]
The following patch fixes the problem: