From: Seonah Moon Date: Wed, 11 May 2016 10:18:28 +0000 (+0900) Subject: Change the path of temp file X-Git-Tag: accepted/tizen/common/20160519.191033^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d485e7b6cace9eec2c2a802dc74fa668fb1d23d;p=platform%2Fcore%2Fapi%2Ftethering.git Change the path of temp file Change-Id: Ied3f1058760bed5a2fd2917820fd4ffe29dedb73 Signed-off-by: Seonah Moon --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 457d8d2..5be9256 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/packaging/capi-network-tethering.spec b/packaging/capi-network-tethering.spec index a5f0f0c..35d953c 100644 --- a/packaging/capi-network-tethering.spec +++ b/packaging/capi-network-tethering.spec @@ -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 diff --git a/src/tethering.c b/src/tethering.c index d2fc7c7..d63720e 100755 --- a/src/tethering.c +++ b/src/tethering.c @@ -29,11 +29,12 @@ #include #include #include +#include #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