From b93240cc27cbb0701998d278b473dcf1cfd55c5c Mon Sep 17 00:00:00 2001 From: Babak Farrokhi Date: Wed, 16 Sep 2015 16:51:12 +0430 Subject: [PATCH] - socket should be opened as readonly --- fsipd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsipd.c b/fsipd.c index a492368..835fa41 100644 --- a/fsipd.c +++ b/fsipd.c @@ -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); }