Use return type to prevent warning and determine chown success. Added TODO

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
Dominique Fuchs 2019-09-09 18:06:29 +02:00
parent 7473cdf184
commit 39df36c247

View file

@ -798,7 +798,10 @@ namespace { // Anonymous namespace for the recall feature
static void preserveGroupOwnership(const QString &fileName, const QFileInfo &fi)
{
#ifdef Q_OS_UNIX
chown(fileName.toLocal8Bit().constData(), -1, fi.groupId());
int chownErr = chown(fileName.toLocal8Bit().constData(), -1, fi.groupId());
if (chownErr) {
// TODO: Error handling!
}
#else
Q_UNUSED(fileName);
Q_UNUSED(fi);