#define MAX_ARRAY_LEN 1024
#define SECURITY_ATTRIBUTES_PATH "/proc/%d/attr/current"
+#define TEMP_DIR "/tmp/"
static int dp_is_exist_dir(const char *dirpath)
{
return DP_ERROR_INVALID_DESTINATION;
}
+ // Check whether directory is temporary directory or not.
+ if (strncmp(resolved_path, TEMP_DIR, strlen(TEMP_DIR)) == 0)
+ return DP_ERROR_NONE;
+
tzplatform_set_user(cred.uid);
// Check whether directory is default directory or not.