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

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

    XMLWordPrintable

Details

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

    Description

      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 "..".

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: