gboolean gps_plugin_get_nmea_fd(replay_timeout *timer)
{
char replay_file_path[256];
+ char nmea_log_path[256];
char *str;
str = setting_get_string(VCONFKEY_LOCATION_NMEA_FILE_NAME);
timer->fd = fopen(replay_file_path, "r");
if (timer->fd == NULL) {
const char *default_nmea_log = tzplatform_mkpath(TZ_SYS_RO_ETC, "location/nmea_replay.log");
- SECLOG_PLUGIN(DBG_ERR, "fopen failed(%s). loading default(%s) ", replay_file_path, default_nmea_log);
- timer->fd = fopen(default_nmea_log, "r");
+ snprintf(nmea_log_path, sizeof(nmea_log_path), "%s%s", "/hal", default_nmea_log);
+ SECLOG_PLUGIN(DBG_ERR, "fopen failed(%s). loading default(%s) ", replay_file_path, nmea_log_path);
+ timer->fd = fopen(nmea_log_path, "r");
if (timer->fd == NULL) {
- SECLOG_PLUGIN(DBG_ERR, "fopen(%s) failed", default_nmea_log);
+ SECLOG_PLUGIN(DBG_ERR, "fopen(%s) failed", nmea_log_path);
return FALSE;
}
}
rm -rf %{buildroot}
%make_install
-mkdir -p %{buildroot}%{TZ_SYS_RO_ETC}/location
-cp -a nmea-log/*.log %{buildroot}%{TZ_SYS_RO_ETC}/location
+mkdir -p %{buildroot}/hal%{TZ_SYS_RO_ETC}/location
+cp -a nmea-log/*.log %{buildroot}/hal%{TZ_SYS_RO_ETC}/location
%post
rm -rf %{_libdir}/liblbs-server-plugin.so
%{_hal_licensedir}/%{name}/LICENSE
%defattr(-,root,root,-)
%{_hal_libdir}/*.so*
-%{TZ_SYS_RO_ETC}/location/*
+/hal%{TZ_SYS_RO_ETC}/location/*