(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

View File

@ -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;