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

QDir("/").cd("..") is different from QDir("/tmp").cd("../..")

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.0
    • Core: I/O
    • None
    •  63f634322b2c0f795bd424be9e51953a10c701de (qtbase/master, 8.2.2012)

      The first one returns false and leaves QDir on the root dir.
      The second one returns true and sets the QDir to "/.."

      The root cause is the special casing for only "..".

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

            Unassigned Unassigned
            dt Daniel Teske
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes