diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-03-28 02:34:23 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-03-28 02:34:23 +0200 |
| commit | ba58914cb1476b94d1b6b2e42bc12471c37ea6b3 (patch) | |
| tree | 4145e78eb837fa796b3b5d7b2c54b15ae1c373a5 /mkdir_r.c | |
| parent | 8843785696053b63aa9113e6030979709bee4d68 (diff) | |
| download | mkdir_r-ba58914cb1476b94d1b6b2e42bc12471c37ea6b3.tar.gz | |
Allow user to specify OS-specific file mode flags
Diffstat (limited to 'mkdir_r.c')
| -rw-r--r-- | mkdir_r.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -20,7 +20,7 @@ #include <stdio.h> #include <errno.h> -int mkdir_r(const char *const path) +int mkdir_r(const char *const path, const int flags) { int ret = -1; char *dup = NULL; @@ -62,7 +62,7 @@ int mkdir_r(const char *const path) if (!*dir) /* Path starting with delimiter character. */ ; - else if (mkdir_r_port(dir)) + else if (mkdir_r_port(dir, flags)) goto exit; dir = dup; |
