diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-01-24 12:17:12 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-02-16 21:08:32 +0000 |
commit | d9a2dd8d3b55d16d2e38d124abb0ade490963b37 (patch) | |
tree | 176b5146049076c892ab401b9bc61b330ced1933 /lib | |
parent | de225ccdf95efb57866d62bc80872c1a2ab99703 (diff) |
QDir::mkpath: don't try to mkdir in automount filesystems
Automount filesystems like /home on many operating systems (QNX and
OpenIndiana, at least) don't like if you try to mkdir in them, even if
the file path already exists. OpenIndiana even gives you an ENOSYS
error.
So instead, let's try to mkdir our target, if we fail because of ENOENT,
we try to create the parent, then try again.
Task-number: QTBUG-58390
Change-Id: Ibe5b1b60c6ea47e19612fffd149cce81589b0acd
Reviewed-by: James McDonnell <jmcdonnell@blackberry.com>
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions