mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 17:36:26 -05:00
Uses the NOFOLLOW option in open() to ensure to do not follow symbolic links.
This commit is contained in:
parent
322110672e
commit
b299f9d368
3 changed files with 15 additions and 4 deletions
5
handle.h
5
handle.h
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue