summaryrefslogtreecommitdiff
path: root/lib/media-util-db.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/media-util-db.c')
-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 */