mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 05:45:42 +03:00
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:
parent
7473cdf184
commit
39df36c247
1 changed files with 4 additions and 1 deletions
|
@ -798,7 +798,10 @@ namespace { // Anonymous namespace for the recall feature
|
||||||
static void preserveGroupOwnership(const QString &fileName, const QFileInfo &fi)
|
static void preserveGroupOwnership(const QString &fileName, const QFileInfo &fi)
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_UNIX
|
#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
|
#else
|
||||||
Q_UNUSED(fileName);
|
Q_UNUSED(fileName);
|
||||||
Q_UNUSED(fi);
|
Q_UNUSED(fi);
|
||||||
|
|
Loading…
Reference in a new issue