create the fifo group accessible (instead of only user accessible)
This commit is contained in:
parent
89fc59cff6
commit
98b9afca18
2 changed files with 7 additions and 3 deletions
|
@ -1,6 +1,9 @@
|
|||
Version 1.4.7+svn:
|
||||
* language and i18n:
|
||||
* updated translations: French, Italian, Japanese
|
||||
* multiplayer:
|
||||
* server:
|
||||
* create the fifo group accessible (instead of only user accessible)
|
||||
* miscellaneous and bug fixes:
|
||||
* AmigaOS4: Minimum stack cookie to prevent stack overflow (patch #1107)
|
||||
* Additional screenmodes for when SDL can't guess them (patch #1108)
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <cerrno>
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -34,15 +35,15 @@ input_stream::input_stream(const std::string& path) : fd_(-1), path_(path)
|
|||
return;
|
||||
}
|
||||
|
||||
const int res = mkfifo(path.c_str(),0600);
|
||||
const int res = mkfifo(path.c_str(),0660);
|
||||
if(res != 0) {
|
||||
std::cerr << "could not make fifo at '" << path << "'\n";
|
||||
std::cerr << "could not make fifo at '" << path << "' (" << errno << ")\n";
|
||||
}
|
||||
|
||||
fd_ = open(path.c_str(),O_RDONLY|O_NONBLOCK);
|
||||
|
||||
if(fd_ == -1) {
|
||||
std::cerr << "failed to open fifo at '" << path << "'\n";
|
||||
std::cerr << "failed to open fifo at '" << path << "' (" << errno << ")\n";
|
||||
} else {
|
||||
std::cerr << "opened fifo at '" << path << "'. Server commands may be written to this file.\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue