Change the path of temp file 71/69071/3 accepted/tizen/common/20160519.191033 accepted/tizen/ivi/20160518.090607 accepted/tizen/mobile/20160518.090528 accepted/tizen/tv/20160518.090540 accepted/tizen/wearable/20160518.090518 submit/tizen/20160518.015500
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 11 May 2016 10:18:28 +0000 (19:18 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 16 May 2016 09:26:29 +0000 (18:26 +0900)
Change-Id: Ied3f1058760bed5a2fd2917820fd4ffe29dedb73
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
CMakeLists.txt
packaging/capi-network-tethering.spec
src/tethering.c

index 457d8d2..5be9256 100755 (executable)
@@ -9,7 +9,7 @@ SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 SET(INC_DIR include)
 INCLUDE_DIRECTORIES(${INC_DIR})
 
-SET(dependents "dlog gio-2.0 gio-unix-2.0 glib-2.0 capi-base-common dbus-1 vconf key-manager libssl capi-system-info")
+SET(dependents "dlog gio-2.0 gio-unix-2.0 glib-2.0 capi-base-common dbus-1 vconf key-manager libssl capi-system-info libtzplatform-config")
 
 IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
        SET(CMAKE_BUILD_TYPE "Release")
index a5f0f0c..35d953c 100644 (file)
@@ -1,6 +1,6 @@
 Name:          capi-network-tethering
 Summary:       Tethering Framework
-Version:       1.0.35
+Version:       1.0.36
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
@@ -14,6 +14,7 @@ BuildRequires:        pkgconfig(vconf)
 BuildRequires: pkgconfig(key-manager)
 BuildRequires: pkgconfig(libssl)
 BuildRequires: pkgconfig(capi-system-info)
+BuildRequires: pkgconfig(libtzplatform-config)
 BuildRequires: cmake
 Requires(post):                /sbin/ldconfig
 Requires(postun):      /sbin/ldconfig
index d2fc7c7..d63720e 100755 (executable)
 #include <openssl/evp.h>
 #include <openssl/sha.h>
 #include <ckmc/ckmc-manager.h>
+#include <tzplatform_config.h>
 #include "tethering_private.h"
 
-#define ALLOWED_LIST   "/etc/hostapd.accept"
-#define BLOCKED_LIST   "/etc/hostapd.deny"
-#define TEMP_LIST      "/etc/hostapd_tmp"
+#define ALLOWED_LIST   tzplatform_mkpath(TZ_SYS_VAR, "/lib/hostapd/hostapd.accept")
+#define BLOCKED_LIST   tzplatform_mkpath(TZ_SYS_VAR, "/lib/hostapd/hostapd.deny")
+#define TEMP_LIST      tzplatform_mkpath(TZ_SYS_VAR, "/lib/hostapd/.hostapd_tmp")
 #define MAC_ADDR_LEN   18
 #define MAX_BUF_SIZE   80