- socket should be opened as readonly

This commit is contained in:
Babak Farrokhi 2015-09-16 16:51:12 +04:30
parent a9c666a183
commit b93240cc27

View File

@ -191,7 +191,7 @@ daemon_start()
return (EXIT_FAILURE);
}
if ((client = fdopen(c, "w")) == NULL) {
if ((client = fdopen(c, "r")) == NULL) {
perror("fdopen");
return (EXIT_FAILURE);
}