diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2020-04-08 14:26:50 -0300 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2020-04-09 10:55:25 -0300 |
commit | 7cd2d2b7516211d233f657edd98903911536b1ff (patch) | |
tree | b3b49851371198bf77d3a20a026d2fd1b4906f25 /src | |
parent | f0ec2eb151f5e3d9a26ce86a1ba86d41f1fe24c4 (diff) |
tst_QFileInfo: fix running with systems without /etc/passwd
Clear Linux containers running as root may have no /etc/passwd. But
they'll have /etc/machine-id because systemd creates that. Also test
/proc/version (a Linux-specific file) because that isn't writeable even
by root.
Take the opportunity to check with access() instead of assuming root and
only root can write to the file.
Change-Id: Ibdc95e9af7bd456a94ecfffd1603e8359604752b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions