src/corelib/io/qfsfileengine_unix.cpp
changeset 22 79de32ba3296
parent 19 fcece45ef507
child 30 5dc02b23752f
equal deleted inserted replaced
19:fcece45ef507 22:79de32ba3296
   516                 QT_STATBUF st;
   516                 QT_STATBUF st;
   517                 if (QT_STAT(chunk, &st) != -1) {
   517                 if (QT_STAT(chunk, &st) != -1) {
   518                     if ((st.st_mode & S_IFMT) != S_IFDIR)
   518                     if ((st.st_mode & S_IFMT) != S_IFDIR)
   519                         return false;
   519                         return false;
   520                 } else if (QT_MKDIR(chunk, 0777) != 0) {
   520                 } else if (QT_MKDIR(chunk, 0777) != 0) {
   521                     //QTP: workaround for QT-3141
   521                     return false;
   522                     if (errno != EEXIST)
       
   523                         return false;
       
   524                 }
   522                 }
   525             }
   523             }
   526         }
   524         }
   527         return true;
   525         return true;
   528     }
   526     }