- 
    
Bug
 - 
    Resolution: Invalid
 - 
    
  Not Evaluated                     
     - 
    None
 - 
    6.9.2
 - 
    None
 
- 
        14f792040 (3.1)
 
Since 6.9.2 (maybe earlier), QTemporaryDir::path() does not return canonical path anymore.
This makes it harder to calculate relative paths between canonical/non-canonical version of the same path.
#include <QCoreApplication> #include <QTextStream> #include <QTemporaryDir> #include <cstdio> int main() { QTextStream ts(stdout); ts << QCoreApplication::translate("hello", "Hello, World!\n"); QTemporaryDir d; ts << d.path(); ts.flush(); }
With 6.8.3: path starts with /var/private:
/private/var/folders/jw/xxt0trhn3b7g56d10bj997nm0000gn/T/qt_temp-SAnbymMacBook-Pro:helloworld-qt
With 6.9.2: path starts with /var:
/var/folders/jw/xxt0trhn3b7g56d10bj997nm0000gn/T/qt_temp-tGZQyGMacBook-Pro:helloworld-qt
| For Gerrit Dashboard: QTBUG-140151 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 675699,3 | Fix canonical path in TemporaryDir. Again | 3.1 | qbs/qbs | Status: MERGED | +2 | +1 |