Disable un-verified codes in obex ftp 75/99575/1 accepted/tizen/common/20161124.170004 accepted/tizen/ivi/20161125.003314 accepted/tizen/mobile/20161125.003218 accepted/tizen/tv/20161125.003233 accepted/tizen/wearable/20161125.003256 submit/tizen/20161123.084000
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 23 Nov 2016 09:15:27 +0000 (18:15 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 23 Nov 2016 09:18:30 +0000 (18:18 +0900)
Change-Id: I2ed8d55ba85b55dc79a95d81774d17d824ebd174
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
obexd/plugins/ftp.c

index 88da134..e979f51 100644 (file)
@@ -170,11 +170,13 @@ int ftp_chkput(struct obex_session *os, void *user_data)
 {
        struct ftp_session *ftp = user_data;
        const char *name = obex_get_name(os);
+#if 0
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
        char *folder;
        int32_t time;
        int err;
 #endif
+#endif
        char *path;
        int ret;
 
@@ -189,12 +191,14 @@ int ftp_chkput(struct obex_session *os, void *user_data)
        if (obex_get_size(os) == OBJECT_SIZE_DELETE)
                return 0;
 
+#if 0
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
        time = 0;
        err = manager_request_authorization(os, time, &folder, &name);
        if (err < 0)
                return -EPERM;
 #endif
+#endif
 
        path = g_build_filename(ftp->folder, name, NULL);
 
@@ -231,6 +235,7 @@ int ftp_put(struct obex_session *os, void *user_data)
        return 0;
 }
 
+#if 0
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
 static gboolean is_valid_name(const char *name)
 {
@@ -258,6 +263,7 @@ static gboolean is_valid_name(const char *name)
        return TRUE;
 }
 #endif
+#endif
 
 int ftp_setpath(struct obex_session *os, void *user_data)
 {
@@ -313,6 +319,7 @@ int ftp_setpath(struct obex_session *os, void *user_data)
                return -EPERM;
        }
 
+#if 0
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
        /* Check if the folder name is valid or not */
        if (!is_valid_name(name)) {
@@ -320,6 +327,7 @@ int ftp_setpath(struct obex_session *os, void *user_data)
                return -EINVAL;
        }
 #endif
+#endif
 
        fullname = g_build_filename(ftp->folder, name, NULL);