mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +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:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user