summaryrefslogtreecommitdiff
path: root/src/basic/mkdir.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-08-13 11:26:49 +0200
committerGitHub <noreply@github.com>2020-08-13 11:26:49 +0200
commit830171936c4e9c072e85685d8c061175dda2ad71 (patch)
treeef1b54d5395d0964be9479ec61a348a63dc21eec /src/basic/mkdir.c
parentc53da7ed02a5d732c9449f79c19675b90a6032e3 (diff)
parent1af83e7c37bc408678b43add88555e92102d9031 (diff)
downloadsystemd-830171936c4e9c072e85685d8c061175dda2ad71.tar.gz
Merge pull request #16612 from poettering/dissect-copy
teach systemd-dissect file copying, and make it officially supported, move to /usr/bin + man page
Diffstat (limited to 'src/basic/mkdir.c')
-rw-r--r--src/basic/mkdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/mkdir.c b/src/basic/mkdir.c
index 6ebc2b95fd..d591e65e41 100644
--- a/src/basic/mkdir.c
+++ b/src/basic/mkdir.c
@@ -106,7 +106,7 @@ int mkdir_parents_internal(const char *prefix, const char *path, mode_t mode, ui
/* return immediately if directory exists */
e = strrchr(path, '/');
if (!e)
- return -EINVAL;
+ return 0;
if (e == path)
return 0;