diff --git a/src/AdminMain.cpp b/src/AdminMain.cpp index c9203b4..c26db87 100644 --- a/src/AdminMain.cpp +++ b/src/AdminMain.cpp @@ -487,7 +487,7 @@ int main(int argc, char **argv) throw UnixSocketException("Group not found."); } - chown("/run/pipedal", -1, group_->gr_gid); + std::ignore = chown("/run/pipedal", -1, group_->gr_gid); setSignalHandlers(); diff --git a/src/DeviceIdFile.cpp b/src/DeviceIdFile.cpp index b2789eb..8fcba51 100644 --- a/src/DeviceIdFile.cpp +++ b/src/DeviceIdFile.cpp @@ -66,8 +66,8 @@ void DeviceIdFile::Save() { throw logic_error("Group not found: pipedal_d"); } - chown(path.c_str(),-1,group_->gr_gid); - chmod(path.c_str(), S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH); + std::ignore = chown(path.c_str(),-1,group_->gr_gid); + std::ignore = chmod(path.c_str(), S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH); f << uuid << endl; diff --git a/src/StdErrorCapture.cpp b/src/StdErrorCapture.cpp index 66d8c95..6026883 100644 --- a/src/StdErrorCapture.cpp +++ b/src/StdErrorCapture.cpp @@ -67,7 +67,7 @@ void StdErrorCapture::EndCapture() dup2(this->oldStdout,STDOUT_HANDLE); close(this->oldStdout); this->oldStdout = -1; - chmod(this->tempFileName.c_str(),0644); + std::ignore = chmod(this->tempFileName.c_str(),0644); } } diff --git a/src/Storage.cpp b/src/Storage.cpp index 9c0cc9f..5164f40 100644 --- a/src/Storage.cpp +++ b/src/Storage.cpp @@ -178,7 +178,7 @@ static void CopyDirectory(const std::filesystem::path &source, const std::filesy std::filesystem::path destFile = destination / sourceFile.filename(); std::filesystem::copy_file(sourceFile,destFile); - chmod(destFile.c_str(),S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); + std::ignore = chmod(destFile.c_str(),S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); } } diff --git a/src/UnixSocket.cpp b/src/UnixSocket.cpp index 96c36d3..6b637d5 100644 --- a/src/UnixSocket.cpp +++ b/src/UnixSocket.cpp @@ -124,8 +124,8 @@ void UnixSocket::Bind(const std::string &socketName, const std::string &permissi } gid = group_->gr_gid; - chown(data->localAddress.sun_path, -1, gid); - chmod(data->localAddress.sun_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); + std::ignore = chown(data->localAddress.sun_path, -1, gid); + std::ignore = chmod(data->localAddress.sun_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); } data->socket = s; @@ -186,8 +186,8 @@ void UnixSocket::Connect(const std::string &remoteSocketName, const std::string } gid_t gid = g->gr_gid; - chown(data->localAddress.sun_path, -1, gid); - chmod(data->localAddress.sun_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); + std::ignore = chown(data->localAddress.sun_path, -1, gid); + std::ignore = chmod(data->localAddress.sun_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); } strcpy(data->remoteAddress.sun_path, remoteSocketName.c_str()); diff --git a/submodules/pipedal_p2pd b/submodules/pipedal_p2pd index 2da12ea..1b39b25 160000 --- a/submodules/pipedal_p2pd +++ b/submodules/pipedal_p2pd @@ -1 +1 @@ -Subproject commit 2da12ea969daa6d0d0e39a211c289b6abca1c8f7 +Subproject commit 1b39b25980f3ccb39f6438fc661e02c6f3616384