}
#else
if (g_str_has_prefix(tmp_path, MEDIA_SHARE_PATH)) {
- /* If shared dirctory, it should be change path to TZ_USER_SHARE from realpath */
+ /* If shared directory, it should be change path to TZ_USER_SHARE from realpath */
snprintf(replace, MAX_PATH_LEN, "%s%s", tzplatform_getenv(TZ_USER_MEDIASHARED), tmp_path + strlen(MEDIA_SHARE_PATH));
if (g_strcmp0(replace, org_path) != 0) {
content_error("symbolic link(directory)");
}
#else
if (g_str_has_prefix(real, MEDIA_SHARE_PATH)) {
- /* If shared dirctory, it should be change path to TZ_USER_SHARE from realpath */
+ /* If shared directory, it should be change path to TZ_USER_SHARE from realpath */
snprintf(result_path, MAX_PATH_LEN, "%s%s", tzplatform_getenv(TZ_USER_MEDIASHARED), real + strlen(MEDIA_SHARE_PATH));
if (g_strcmp0(result_path, origin) != 0) {
content_error("symbolic link(directory)");
return MEDIA_CONTENT_ERROR_NONE;
}
-
-
-/* FIXME : If there are no issue reports related to this, it will be deleted in tizen 6.5 or after. */
-char * _media_content_replace_path_in_condition(const char *condition)
-{
- return g_strdup(condition);
-#if 0
- char **split_list = NULL;
- char *result = NULL;
-
- if (!STRING_VALID(MEDIA_ROOT_PATH_INTERNAL_OLD) || !STRING_VALID(MEDIA_ROOT_PATH_INTERNAL))
- return NULL;
-
- content_sec_debug("Old condition[%s]", condition);
-
- split_list = g_strsplit(condition, MEDIA_ROOT_PATH_INTERNAL_OLD, -1);
- if (!split_list)
- return NULL;
-
- result = g_strjoinv(MEDIA_ROOT_PATH_INTERNAL, split_list);
- g_strfreev(split_list);
-
- return result;
-#endif
-}
-
-/* FIXME : If there are no issue reports related to this, it will be deleted in Tizen 6.5 or after. */
-int _media_content_replace_path(const char *path, char *replace_path)
-{
- content_retip_if_fail(STRING_VALID(path));
-
- snprintf(replace_path, MAX_PATH_LEN, "%s", path);
-#if 0
- if (strncmp(path, MEDIA_ROOT_PATH_INTERNAL_OLD, strlen(MEDIA_ROOT_PATH_INTERNAL_OLD)) == 0) {
- content_sec_debug("Old path[%s]", path);
- snprintf(replace_path, MAX_PATH_LEN, "%s%s", MEDIA_ROOT_PATH_INTERNAL, path + strlen(MEDIA_ROOT_PATH_INTERNAL_OLD));
- } else {
- snprintf(replace_path, MAX_PATH_LEN, "%s", path);
- }
-#endif
-
- return MEDIA_CONTENT_ERROR_NONE;
-}
-