Add the default path in the script file 76/77076/2 accepted/tizen/common/20160703.125934 accepted/tizen/ivi/20160629.021341 accepted/tizen/mobile/20160629.021425 accepted/tizen/tv/20160629.021246 accepted/tizen/wearable/20160629.021403 submit/tizen/20160628.115841
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 28 Jun 2016 11:16:33 +0000 (20:16 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 28 Jun 2016 11:56:03 +0000 (20:56 +0900)
Change-Id: I2b1390fe7ee912d5e92d0e2f7c60b79436c61d6e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-share/src/bt-share-main.c
packaging/bluetooth-share.spec
packaging/init_db.sh

index dcb623b..d1b4c04 100644 (file)
@@ -244,6 +244,7 @@ int _bt_init_obex_server(void)
        return BT_SHARE_ERROR_NONE;
 }
 
+#if 0
 void __bt_create_transfer_db(void)
 {
        struct stat sts;
@@ -259,6 +260,7 @@ void __bt_create_transfer_db(void)
                        ERR("Exit code of epp not clean: %i", ret);
        }
 }
+#endif
 
 int main(void)
 {
@@ -270,7 +272,9 @@ int main(void)
 
        signal(SIGTERM, __bt_sigterm_handler);
 
+#if 0
        __bt_create_transfer_db();
+#endif
 
        if (__bt_dbus_request_name() == FALSE) {
                INFO("Aleady dbus instance existed");
@@ -285,20 +289,19 @@ int main(void)
        if (appcore_set_i18n(BT_COMMON_PKG, BT_COMMON_RES) < 0)
                return -1;
 
+#if 0
        uid_t network_user = 5001; /* uid of owner */
        gid_t network_group = 100; /* gid of users */
 
-#if 0
        uid_t network_user = 551; /* uid of network_fw */
        gid_t network_group = 551; /* gid of network_fw */
        initgroups("network_fw", network_group);
-#endif
        initgroups("users", network_group);
        ret = setgid(network_group);
        DBG("setgid return : %d", ret);
        ret = setuid(network_user);
        DBG("setuid return : %d", ret);
-
+#endif
        if (_bt_share_cynara_init()) {
                ERR("Failed to initialize Cynara.\n");
                return -1;
index e3e5fcd..97efb87 100644 (file)
@@ -84,6 +84,10 @@ make
 install -D -m 0755 %{SOURCE1004} %{buildroot}%{TZ_SYS_DATA}/%{name}/init_db.sh
 install -D -m 0644 packaging/bluetooth-share.service %{buildroot}%{_libdir}/systemd/system/bluetooth-share.service
 
+#%post
+#/sbin/ldconfig
+#%{TZ_SYS_DATA}/%{name}/init_db.sh
+
 %post -n libbluetooth-share-devel -p /sbin/ldconfig
 
 %post -n libbluetooth-share -p /sbin/ldconfig
index 75d5f5f..5164897 100644 (file)
@@ -1,4 +1,5 @@
 #!/bin/sh
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
 
 eval $(tzplatform-get TZ_SYS_DB)