Fix for removed file case 15/172015/1 accepted/tizen/unified/20180312.060437 accepted/tizen/unified/20180313.061055 submit/tizen/20180309.041116 submit/tizen/20180312.055137
authorMinje Ahn <minje.ahn@samsung.com>
Fri, 9 Mar 2018 03:58:23 +0000 (12:58 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Fri, 9 Mar 2018 03:58:23 +0000 (12:58 +0900)
Change-Id: I36c52f10c9f14cf2a030e129834e05bb3bc38a71
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/media_util_private.c

index aee3535..d963500 100755 (executable)
@@ -88,6 +88,12 @@ int _media_util_check_ignore_file(const char *path, bool *ignore)
        char replace[MAX_PATH_LEN] = {0, };
 #endif
 
+       /* Check is exist (It may be the path to the deleted file) */
+       if (!g_file_test(path, G_FILE_TEST_EXISTS)) {
+               media_content_sec_debug("removed path[%s]", path);
+               return MEDIA_CONTENT_ERROR_NONE;
+       }
+
        /* Check symbolic link file */
        if (g_file_test(path, G_FILE_TEST_IS_SYMLINK)) {
                *ignore = TRUE;