Guard against bad link destinations.

This commit is contained in:
Vreixo Formoso
2008-01-08 20:05:01 +01:00
parent 1459801134
commit 2464455fea
4 changed files with 70 additions and 6 deletions

View File

@ -115,4 +115,12 @@ int iso_node_new_root(IsoDir **root);
*/
int iso_node_is_valid_name(const char *name);
/**
* Check if a given path is valid for the destination of a link.
*
* @return
* 1 if yes, 0 if not
*/
int iso_node_is_valid_link_dest(const char *dest);
#endif /*LIBISO_NODE_H_*/