Fix error type 10/62010/1
authorMinje Ahn <minje.ahn@samsung.com>
Sun, 13 Mar 2016 23:43:29 +0000 (08:43 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Sun, 13 Mar 2016 23:43:29 +0000 (08:43 +0900)
Change-Id: I47f9a5f0ff423fdc174e19fb11206ab265d11f22
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
lib/media-util-db.c

index 8fe6695..f3f01e5 100755 (executable)
@@ -210,7 +210,10 @@ static int __media_db_request_update_tcp(ms_msg_type_e msg_type, const char *req
        if (connect(sockfd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) < 0) {
                MSAPI_DBG_STRERROR("connect error");
                close(sockfd);
-               return MS_MEDIA_ERR_SOCKET_CONN;
+               if (errno == EACCES)
+                       return MS_MEDIA_ERR_PERMISSION_DENIED;
+               else
+                       return MS_MEDIA_ERR_SOCKET_CONN;
        }
 
        /* Send request */