diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-10-22 21:41:03 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-10-22 21:41:03 +0000 |
commit | 51f8b95c8c647fc2c91a5828fe7de36e97f00635 (patch) | |
tree | 3d3e97908c60c1b1038783db1c367588e2795e39 | |
parent | f49b9248aa68939e0d521a12c23f2c1a118f9ff9 (diff) | |
download | mdevd-51f8b95c8c647fc2c91a5828fe7de36e97f00635.tar.xz |
Don't fail mkdirp on EEXIST
-rw-r--r-- | src/mdevd/mdevd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mdevd/mdevd.c b/src/mdevd/mdevd.c index a8691ad..1f7485e 100644 --- a/src/mdevd/mdevd.c +++ b/src/mdevd/mdevd.c @@ -160,7 +160,7 @@ static inline int mkdirp (char *s) if (dryrun) strerr_warni2x("dry run: mkdir ", s) ; else r = mkdir(s, 0755) ; s[i] = '/' ; - if (r < 0) break ; + if (r < 0 && errno != EEXIST) break ; } } return i >= n ; |