diff options
-rwxr-xr-x | lib/media-util-db.c | 5 | ||||
-rwxr-xr-x | packaging/media-server.spec | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/media-util-db.c b/lib/media-util-db.c index a094eee..f643b0d 100755 --- a/lib/media-util-db.c +++ b/lib/media-util-db.c @@ -168,7 +168,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 */ diff --git a/packaging/media-server.spec b/packaging/media-server.spec index dced0a0..bbec10b 100755 --- a/packaging/media-server.spec +++ b/packaging/media-server.spec @@ -1,6 +1,6 @@ Name: media-server Summary: File manager service server. -Version: 0.2.89 +Version: 0.2.90 Release: 1 Group: utils License: Apache-2.0 |