mirror of
https://github.com/troglobit/libite.git
synced 2026-11-12 16:51:16 +00:00
makepath(): Update doc, recommend mkpath() over this function
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
add4d5d325
commit
714ea88cc9
1 file changed
+5
@@ -50,6 +50,11 @@ int mkpath(const char *dir, mode_t mode)
|
|||||||
* makepath - Create all components of the specified directory.
|
* makepath - Create all components of the specified directory.
|
||||||
* @dir: Directory to create.
|
* @dir: Directory to create.
|
||||||
*
|
*
|
||||||
|
* Comment:
|
||||||
|
* It is recommended to use mkpath() over this function since it has
|
||||||
|
* the @mode argument while this function instead default ot 0777,
|
||||||
|
* which in most cases is insecure.
|
||||||
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* POSIX OK (0) on success, otherwise -1 and errno set appropriately.
|
* POSIX OK (0) on success, otherwise -1 and errno set appropriately.
|
||||||
* This function returns EINVAL on bad argument, or ENOMEM when it
|
* This function returns EINVAL on bad argument, or ENOMEM when it
|
||||||
|
|||||||
Reference in new issue
Block a user