When a symlink to a file is added, and the file extension is not <map>'ed, the file will end up in the db with an application/x-symlink mimetype.
Thanks for the observation, let's see how we can handle this nicely.
It seems libmagic supports a MAGIC_SYMLINK flag to follow symlinks when querying files. See http://linux.die.net/man/3/libmagic
I tried to patch myself but couldn't even get the unpatched svn code to compile. Anyway, maybe this is a one line fix for Jin :)
Log in to post a comment.
Thanks for the observation, let's see how we can handle this nicely.
It seems libmagic supports a MAGIC_SYMLINK flag to follow symlinks when querying files.
See http://linux.die.net/man/3/libmagic
I tried to patch myself but couldn't even get the unpatched svn code to compile. Anyway, maybe this is a one line fix for Jin :)