projects
/
platform
/
core
/
multimedia
/
media-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2850a3f
)
Fix error type
10/62010/1
author
Minje Ahn
<minje.ahn@samsung.com>
Sun, 13 Mar 2016 23:43:29 +0000
(08:43 +0900)
committer
Minje 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
patch
|
blob
|
history
diff --git
a/lib/media-util-db.c
b/lib/media-util-db.c
index
8fe6695
..
f3f01e5
100755
(executable)
--- a/
lib/media-util-db.c
+++ b/
lib/media-util-db.c
@@
-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 */