@@ -122,7 +122,7 @@ static void display_helper(char* command);
122122
123123static int backup (SSL * ssl , int socket , char * server , uint8_t compression , uint8_t encryption , char * incremental , int32_t output_format );
124124static int list_backup (SSL * ssl , int socket , char * server , char * sort_order , uint8_t compression , uint8_t encryption , int32_t output_format );
125- static int list_s3_objects (SSL * ssl , int socket , char * server , uint8_t compression , uint8_t encryption , int32_t output_format );
125+ static int list_s3_objects (SSL * ssl , int socket , char * server , char * prefix , uint8_t compression , uint8_t encryption , int32_t output_format );
126126static int delete_s3_objects (SSL * ssl , int socket , char * server , char * prefix , uint8_t compression , uint8_t encryption , int32_t output_format );
127127static int restore_s3_objects (SSL * ssl , int socket , char * server , char * prefix , uint8_t compression , uint8_t encryption , int32_t output_format );
128128static int restore (SSL * ssl , int socket , char * server , char * backup_id , char * position , char * directory , uint8_t compression , uint8_t encryption , int32_t output_format );
@@ -932,7 +932,7 @@ main(int argc, char** argv)
932932 }
933933 else if (parsed .cmd -> action == MANAGEMENT_S3_LS )
934934 {
935- exit_code = list_s3_objects (s_ssl , socket , parsed .args [0 ], compression , encryption , output_format );
935+ exit_code = list_s3_objects (s_ssl , socket , parsed .args [0 ], parsed . args [ 1 ], compression , encryption , output_format );
936936 }
937937 else if (parsed .cmd -> action == MANAGEMENT_S3_DELETE )
938938 {
@@ -1426,9 +1426,9 @@ list_backup(SSL* ssl, int socket, char* server, char* sort_order, uint8_t compre
14261426 return 1 ;
14271427}
14281428static int
1429- list_s3_objects (SSL * ssl , int socket , char * server , uint8_t compression , uint8_t encryption , int32_t output_format )
1429+ list_s3_objects (SSL * ssl , int socket , char * server , char * prefix , uint8_t compression , uint8_t encryption , int32_t output_format )
14301430{
1431- if (pgmoneta_management_request_list_s3_objects (ssl , socket , server , compression , encryption , output_format ))
1431+ if (pgmoneta_management_request_list_s3_objects (ssl , socket , server , prefix , compression , encryption , output_format ))
14321432 {
14331433 goto error ;
14341434 }
0 commit comments