]> git.ipfire.org Git - thirdparty/lxc.git/commit
utils: add fastpath routine on mkdir_p function 4098/head
authorLeesoo Ahn <lsahn@ooseel.net>
Sat, 26 Mar 2022 12:09:05 +0000 (21:09 +0900)
committerLeesoo Ahn <lsahn@ooseel.net>
Sat, 26 Mar 2022 13:22:10 +0000 (22:22 +0900)
commit0a0911faee6c41c99a6c78b2e7a540560ebd2441
treeb1f1e9a256122a9d6e95ea4df0ebe067cc75e2a6
parent90a9b72667fd0547321cc0f9e4c4ac03a4d3dd25
utils: add fastpath routine on mkdir_p function

Call 'access' to examine whether 'dir' is already existed or not instead
of directly calling 'mkdir' on each dir name separated by slash '/' even though
'dir' is existed.

Signed-off-by: Leesoo Ahn <lsahn@ooseel.net>
src/lxc/utils.c