diff options
author | Jaekyu Park <jk7744.park@samsung.com> | 2016-05-27 16:53:33 +0900 |
---|---|---|
committer | Jaekyu Park <jk7744.park@samsung.com> | 2016-05-27 16:53:33 +0900 |
commit | ebfeb294baacdbd213d242ae316a9415fa0b8f8d (patch) | |
tree | 37475c159810684d3ec5efc3981ec7ad22ea3157 /lib | |
parent | a9e030aa76f3af2c7b2ceb71504ac4364db70f11 (diff) | |
download | media-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 |
Tizen 2.4 SDK Rev6 Releasesubmit/tizen_2.4/20160530.023258accepted/tizen/2.4/mobile/20160530.220610tizen_2.4accepted/tizen_2.4_mobile
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/media-util-db.c | 5 |
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 */ |