mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-05-06 05:34:09 +02:00
Add warning for failed chown in libsync/propagatedownload.cpp
In addition to PR 1409 generate warnings if chown fails.
See: https://github.com/nextcloud/desktop/pull/1409
Signed-off-by: Michael Schuster <michael@schuster.ms>
(cherry picked from commit 207de071f4
)
Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
parent
2f46601396
commit
04a75eaca2
@ -800,7 +800,8 @@ namespace { // Anonymous namespace for the recall feature
|
||||
#ifdef Q_OS_UNIX
|
||||
int chownErr = chown(fileName.toLocal8Bit().constData(), -1, fi.groupId());
|
||||
if (chownErr) {
|
||||
// TODO: Error handling!
|
||||
// TODO: Consider further error handling!
|
||||
qCWarning(lcPropagateDownload) << QString("preserveGroupOwnership: chown error %1: setting group %2 failed on file %3").arg(chownErr).arg(fi.groupId()).arg(fileName);
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(fileName);
|
||||
|
Loading…
Reference in New Issue
Block a user