summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJaekyu Park <jk7744.park@samsung.com>2016-05-27 16:53:33 +0900
committerJaekyu Park <jk7744.park@samsung.com>2016-05-27 16:53:33 +0900
commitebfeb294baacdbd213d242ae316a9415fa0b8f8d (patch)
tree37475c159810684d3ec5efc3981ec7ad22ea3157 /lib
parenta9e030aa76f3af2c7b2ceb71504ac4364db70f11 (diff)
downloadmedia-server-accepted/tizen_2.4_mobile.tar.gz
media-server-accepted/tizen_2.4_mobile.tar.bz2
media-server-accepted/tizen_2.4_mobile.zip
Diffstat (limited to 'lib')
-rwxr-xr-xlib/media-util-db.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/media-util-db.c b/lib/media-util-db.c
index 95bc281..f1549f2 100755
--- a/lib/media-util-db.c
+++ b/lib/media-util-db.c
@@ -166,7 +166,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 */