summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2016-05-03 23:51:46 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2016-05-03 23:51:46 (GMT)
commit57deb09a827131635de6148d819975df03ff33d1 (patch)
treec60be8101b751c121629eec1a1c023ebbb790702 /server
parent7020eb25112070454fe450cab3b0b7215d8f90cc (diff)
downloadlibmedia-thumbnail-57deb09a827131635de6148d819975df03ff33d1.zip
libmedia-thumbnail-57deb09a827131635de6148d819975df03ff33d1.tar.gz
libmedia-thumbnail-57deb09a827131635de6148d819975df03ff33d1.tar.bz2
Change-Id: If65c08fce91a1752621cdc2abe8f3393272b14f7 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'server')
-rwxr-xr-xserver/thumb-server-internal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/thumb-server-internal.c b/server/thumb-server-internal.c
index 270c496..cf14b97 100755
--- a/server/thumb-server-internal.c
+++ b/server/thumb-server-internal.c
@@ -41,8 +41,8 @@
#define THUMB_DEFAULT_WIDTH 320
#define THUMB_DEFAULT_HEIGHT 240
#define THUMB_BLOCK_SIZE 512
-#define THUMB_ROOT_UID "0"
-#define THUMB_COMM_SOCK_PATH tzplatform_mkpath(TZ_SYS_RUN, "media-server/media_ipc_thumbcomm.socket")
+#define THUMB_ROOT_UID "451"
+#define THUMB_COMM_SOCK_PATH "/tmp/media-server/media_ipc_thumbcomm.socket"
#define THUMB_EMPTY_STR ""
static __thread char **arr_path;
@@ -370,7 +370,7 @@ gboolean _thumb_server_read_socket(GIOChannel *src,
}
if (recv_msg.msg_type == THUMB_REQUEST_KILL_SERVER && strncmp(credentials.uid, THUMB_ROOT_UID, strlen(THUMB_ROOT_UID)) != 0) {
- thumb_err("Only root can send THUMB_REQUEST_KILL_SERVER request");
+ thumb_err("Only media-server can send THUMB_REQUEST_KILL_SERVER request");
_thumb_server_send_deny_message(client_sock);
close(client_sock);
return TRUE;