Improve security and error messages for user-supplied paths.
Improve security and error messages for user-supplied paths.

Signed-off-by: Chris Lamb <29e6d179a8d73471df7861382db6dd7e64138033@debian.org>

lamby/musicdb,lamby/musicdb,lamby/musicdb,lamby/musicdb