1
0
mirror of https://github.com/MidnightCommander/mc synced 2025-04-03 05:32:56 +03:00

(my_mkdir): don't call mc_mkdir() twice in case of failure.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2013-07-14 11:13:11 +04:00
parent 7b9c26c6d6
commit 78d26381ca

@ -111,11 +111,7 @@ my_mkdir (const vfs_path_t * s_vpath, mode_t mode)
{
int result;
result = mc_mkdir (s_vpath, mode);
if (result != 0)
result = my_mkdir_rec (s_vpath, mode);
result = my_mkdir_rec (s_vpath, mode);
if (result == 0)
{
vfs_path_t *my_s;