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

QFile::permissions reports wrong permissions in t 5.10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.10.0
    • 5.10.0 Beta 3
    • Core: I/O
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes