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

On Mac, QFile::rename() returns true even though it does not succeed, when trying to use a destination on a different partition.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.5.3
    • 4.5.1
    • Core: I/O
    • None
    • macOS

    Description

      The documentation state: "On most file systems, rename() fails only (...) if newName and oldName are not on the same partition". So this behavior is OK, but rename() should not return true, if the requested operation does not actually succeed. Currently it returns true on Mac, even though nothing happens.

      Attachments

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

        Activity

          People

            roschern Nils Christian Roscher-Nielsen (Inactive)
            roschern Nils Christian Roscher-Nielsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes