mirror of
https://github.com/fumiama/simple-kanban.git
synced 2026-06-05 00:10:29 +08:00
fix set
This commit is contained in:
4
server.c
4
server.c
@@ -405,7 +405,7 @@ static FILE *open_file(char* file_path, int lock_type, char* mode) {
|
||||
file_mode &= ~lock_type;
|
||||
return NULL;
|
||||
}
|
||||
printf("Open file in mode %s\n", mode);
|
||||
printf("Open file %s in mode %s\n", file_path, mode);
|
||||
return fp;
|
||||
}
|
||||
|
||||
@@ -556,7 +556,7 @@ static int s3_set_data(threadtimer_t *timer) {
|
||||
printf("Set data size: %u\n", file_size);
|
||||
int is_first_data = 0;
|
||||
if(timer->numbytes == sizeof(uint32_t)) {
|
||||
if((timer->numbytes = recv(timer->accept_fd, timer->data, TIMERDATSZ, MSG_DONTWAIT)) <= 0) {
|
||||
if((timer->numbytes = recv(timer->accept_fd, timer->data, TIMERDATSZ, MSG_DONTWAIT)) < 0) {
|
||||
*(uint32_t*)ret = *(uint32_t*)"erro";
|
||||
goto S3_RETURN;
|
||||
}
|
||||
|
||||
@@ -11,12 +11,10 @@ $kanban
|
||||
EOF
|
||||
echo md5:${md5val##* } | tr -d '\n' >> $3
|
||||
cat > cmd_seq.txt << EOF
|
||||
$5set$6
|
||||
dat
|
||||
$5$6dat
|
||||
file
|
||||
$4
|
||||
set$6
|
||||
ver
|
||||
$6ver
|
||||
file
|
||||
$3
|
||||
quit
|
||||
|
||||
Reference in New Issue
Block a user