Remove unnecessary calling method function 40/197640/2
authorInkyun Kil <inkyun.kil@samsung.com>
Tue, 15 Jan 2019 01:32:27 +0000 (10:32 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Tue, 15 Jan 2019 01:45:32 +0000 (10:45 +0900)
Change-Id: Id8fa10439a93524378ec26760e7220d16c24d8cc
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
alarm-session-agent/agent.c

index 19dda23..f353c48 100755 (executable)
@@ -73,13 +73,6 @@ static int _sock_create(const char *path)
                return -1;
        }
 
-       r = chmod(sa.sun_path, 0666);
-       if (r == -1) {
-               LOGE("Socket '%s': chmod %d", path, errno);
-               close(fd);
-               return -1;
-       }
-
        r = listen(fd, SOMAXCONN);
        if (r == -1) {
                LOGE("Socket '%s': listen %d", path, errno);