diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-06-30 23:12:29 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-06-30 23:12:29 +0000 |
| commit | 6f9848db3383c7f5462ce21173bcdbdd961ed72a (patch) | |
| tree | 2b8bab93ffbd770822f6a14895e87981df17b8c5 | |
| parent | 19a4b38f2bcfe6a1809bdcbcd23fdec15c3cf771 (diff) | |
| download | mdevd-6f9848db3383c7f5462ce21173bcdbdd961ed72a.tar.gz | |
Don't pollute mkdirp
Signed-off-by: Laurent Bercot <ska@appnovation.com>
| -rw-r--r-- | src/mdevd/mdevd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mdevd/mdevd.c b/src/mdevd/mdevd.c index c34bf58..1781115 100644 --- a/src/mdevd/mdevd.c +++ b/src/mdevd/mdevd.c @@ -152,7 +152,7 @@ static inline void script_free (scriptelem *script, unsigned short scriptlen, st for (i = 0 ; i < envmatchlen ; i++) regfree(&envmatch[i].re) ; } -static inline int mkdirp (char const *path) +static inline int mdevd_mkdirp (char const *path) { size_t n = strlen(path) ; if (!n) return 1 ; @@ -176,7 +176,7 @@ static inline int mkdirp (char const *path) static int makesubdirs (char const *path) { - if (strrchr(path, '/') && !mkdirp(path)) + if (strrchr(path, '/') && !mdevd_mkdirp(path)) { if (verbosity) strerr_warnwu2sys("create subdirectories for ", path) ; return 0 ; |
