summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinje ahn <minje.ahn@samsung.com>2016-05-08 22:44:43 -0700
committerMinje ahn <minje.ahn@samsung.com>2016-05-08 22:44:43 -0700
commit8050631adafc56333ca78bae5f442dc8cc6f8a78 (patch)
tree4e16aa2b7521801db235736622ebb98704668b6c
parent57deb09a827131635de6148d819975df03ff33d1 (diff)
downloadlibmedia-thumbnail-accepted/tizen/mobile/20160510.002322.tar.gz
libmedia-thumbnail-accepted/tizen/mobile/20160510.002322.tar.bz2
libmedia-thumbnail-accepted/tizen/mobile/20160510.002322.zip
This reverts commit 57deb09a827131635de6148d819975df03ff33d1. Change-Id: I9b51a706188ccdec2228d89e649284643e8001a8
-rw-r--r--packaging/libmedia-thumbnail.spec2
-rwxr-xr-xserver/thumb-server-internal.c6
-rwxr-xr-xsrc/ipc/media-thumb-ipc.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/packaging/libmedia-thumbnail.spec b/packaging/libmedia-thumbnail.spec
index 589f368..e535413 100644
--- a/packaging/libmedia-thumbnail.spec
+++ b/packaging/libmedia-thumbnail.spec
@@ -1,6 +1,6 @@
Name: libmedia-thumbnail
Summary: Media thumbnail service library for multimedia applications
-Version: 0.1.95
+Version: 0.1.94
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0 and public domain
diff --git a/server/thumb-server-internal.c b/server/thumb-server-internal.c
index cf14b97..270c496 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 "451"
-#define THUMB_COMM_SOCK_PATH "/tmp/media-server/media_ipc_thumbcomm.socket"
+#define THUMB_ROOT_UID "0"
+#define THUMB_COMM_SOCK_PATH tzplatform_mkpath(TZ_SYS_RUN, "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 media-server can send THUMB_REQUEST_KILL_SERVER request");
+ thumb_err("Only root can send THUMB_REQUEST_KILL_SERVER request");
_thumb_server_send_deny_message(client_sock);
close(client_sock);
return TRUE;
diff --git a/src/ipc/media-thumb-ipc.c b/src/ipc/media-thumb-ipc.c
index fe89c59..29ce6b1 100755
--- a/src/ipc/media-thumb-ipc.c
+++ b/src/ipc/media-thumb-ipc.c
@@ -32,7 +32,7 @@
#include <pwd.h>
#define THUMB_SOCK_BLOCK_SIZE 512
-#define THUMB_IPC_PATH "/tmp/media-server/media_ipc_thumbcreator.socket"
+#define THUMB_IPC_PATH tzplatform_mkpath(TZ_SYS_RUN, "media-server/media_ipc_thumbcreator.socket")
static GQueue *g_request_queue = NULL;
static GQueue *g_manage_queue = NULL;