Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-64514

QFile::permissions reports wrong permissions in t 5.10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.10.0 Beta 3
    • Fix Version/s: 5.10.0
    • Component/s: Core: I/O
    • Labels:
      None
    • Commits:
      4ee85ff7c5db7aa228a30a9dc2a52d5d37089241

      Description

      Initially found while investigating a test failure in the KDE messagelib repo.

      QFile:permissions doesn't return the same flags if it uses statx.

      #include <QFile>
      #include <QDebug>
      int main(int argc, char *argv[]) \{
        qDebug() << QFile(argv[1]).permissions();
      }
      
      touch test
      chmod 777 test
      
      ./testPermissions test
      

      With Qt 5.10 : QFlags(0x1|0x2|0x4|0x10|0x20|0x40|0x1000|0x2000|0x4000)
      With Qt 5.9 : QFlags(0x1|0x2|0x4|0x10|0x20|0x40|0x100|0x200|0x400|0x1000|0x2000|0x4000)

       

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            cgiboudeaux Christophe Giboudeaux
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes