Uses the NOFOLLOW option in open() to ensure to do not follow symbolic links.

This commit is contained in:
Andrea Mazzoleni 2011-08-25 18:41:27 +02:00
parent 322110672e
commit b299f9d368
3 changed files with 15 additions and 4 deletions

View file

@ -29,6 +29,11 @@ struct snapraid_handle {
struct stat st; /**< Stat info of the opened file. */
};
/**
* Creates all the required directories if missing.
*/
int handle_ancestor(const char* file);
/**
* Closes a file, if it's different from the specified one.
*/