G++11 Errors
This commit is contained in:
+1
-1
@@ -487,7 +487,7 @@ int main(int argc, char **argv)
|
|||||||
throw UnixSocketException("Group not found.");
|
throw UnixSocketException("Group not found.");
|
||||||
}
|
}
|
||||||
|
|
||||||
chown("/run/pipedal", -1, group_->gr_gid);
|
std::ignore = chown("/run/pipedal", -1, group_->gr_gid);
|
||||||
|
|
||||||
setSignalHandlers();
|
setSignalHandlers();
|
||||||
|
|
||||||
|
|||||||
@@ -66,8 +66,8 @@ void DeviceIdFile::Save()
|
|||||||
{
|
{
|
||||||
throw logic_error("Group not found: pipedal_d");
|
throw logic_error("Group not found: pipedal_d");
|
||||||
}
|
}
|
||||||
chown(path.c_str(),-1,group_->gr_gid);
|
std::ignore = chown(path.c_str(),-1,group_->gr_gid);
|
||||||
chmod(path.c_str(), S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH);
|
std::ignore = chmod(path.c_str(), S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH);
|
||||||
|
|
||||||
|
|
||||||
f << uuid << endl;
|
f << uuid << endl;
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ void StdErrorCapture::EndCapture()
|
|||||||
dup2(this->oldStdout,STDOUT_HANDLE);
|
dup2(this->oldStdout,STDOUT_HANDLE);
|
||||||
close(this->oldStdout);
|
close(this->oldStdout);
|
||||||
this->oldStdout = -1;
|
this->oldStdout = -1;
|
||||||
chmod(this->tempFileName.c_str(),0644);
|
std::ignore = chmod(this->tempFileName.c_str(),0644);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -178,7 +178,7 @@ static void CopyDirectory(const std::filesystem::path &source, const std::filesy
|
|||||||
std::filesystem::path destFile = destination / sourceFile.filename();
|
std::filesystem::path destFile = destination / sourceFile.filename();
|
||||||
|
|
||||||
std::filesystem::copy_file(sourceFile,destFile);
|
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);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-4
@@ -124,8 +124,8 @@ void UnixSocket::Bind(const std::string &socketName, const std::string &permissi
|
|||||||
}
|
}
|
||||||
gid = group_->gr_gid;
|
gid = group_->gr_gid;
|
||||||
|
|
||||||
chown(data->localAddress.sun_path, -1, gid);
|
std::ignore = chown(data->localAddress.sun_path, -1, gid);
|
||||||
chmod(data->localAddress.sun_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
|
std::ignore = chmod(data->localAddress.sun_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
|
||||||
}
|
}
|
||||||
|
|
||||||
data->socket = s;
|
data->socket = s;
|
||||||
@@ -186,8 +186,8 @@ void UnixSocket::Connect(const std::string &remoteSocketName, const std::string
|
|||||||
}
|
}
|
||||||
gid_t gid = g->gr_gid;
|
gid_t gid = g->gr_gid;
|
||||||
|
|
||||||
chown(data->localAddress.sun_path, -1, gid);
|
std::ignore = chown(data->localAddress.sun_path, -1, gid);
|
||||||
chmod(data->localAddress.sun_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
|
std::ignore = chmod(data->localAddress.sun_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy(data->remoteAddress.sun_path, remoteSocketName.c_str());
|
strcpy(data->remoteAddress.sun_path, remoteSocketName.c_str());
|
||||||
|
|||||||
+1
-1
Submodule submodules/pipedal_p2pd updated: 2da12ea969...1b39b25980
Reference in New Issue
Block a user