Skip to content

Commit

Permalink
fix share.
Browse files Browse the repository at this point in the history
  • Loading branch information
dingyi9982 committed Sep 21, 2018
1 parent 178b7cb commit 27895fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/genaro.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ static void list_files_request_worker(uv_work_t *work)

p_is_share[i] = json_object_get_boolean(isShareFile);

if(req->is_support_share || !isShareFile) {
if(req->is_support_share || !p_is_share[i]) {
num_visible_files++;
}
}
Expand Down Expand Up @@ -425,7 +425,7 @@ static void list_files_request_worker(uv_work_t *work)
continue;
}

genaro_file_meta_t *file_meta = file_meta = &req->files[file_index];
genaro_file_meta_t *file_meta = &req->files[file_index];
file_index++;

file_meta->isShareFile = p_is_share[i];
Expand Down
4 changes: 2 additions & 2 deletions src/uploader.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,10 @@ static void create_bucket_entry(uv_work_t *work)

if(state->rsa_key_ctr_as_str && state->rsa_key_ctr_as_str->key_as_str && state->rsa_key_ctr_as_str->ctr_as_str) {
json_object *rsa_decryption_key = json_object_new_string(state->rsa_key_ctr_as_str->key_as_str);
json_object_object_add(body, "rsa_decryption_key", rsa_decryption_key);
json_object_object_add(body, "rsaKey", rsa_decryption_key);

json_object *rsa_decryption_ctr = json_object_new_string(state->rsa_key_ctr_as_str->ctr_as_str);
json_object_object_add(body, "rsa_decryption_ctr", rsa_decryption_ctr);
json_object_object_add(body, "rsaCtr", rsa_decryption_ctr);
}

struct json_object *hmac = json_object_new_object();
Expand Down

0 comments on commit 27895fa

Please sign in to comment.