mirror of
https://github.com/schoebel/mars
synced 2024-12-11 17:29:48 +00:00
server: propagate path from client
This commit is contained in:
parent
c4fb7c2e41
commit
e7a53ec4e3
@ -444,11 +444,16 @@ int handler_thread(void *data)
|
||||
}
|
||||
case CMD_GETENTS:
|
||||
{
|
||||
status = -EINVAL;
|
||||
if (unlikely(!cmd.cmd_str1))
|
||||
break;
|
||||
char *path = cmd.cmd_str1 ? cmd.cmd_str1 : "/mars";
|
||||
|
||||
status = mars_dent_work(&handler_global, "/mars", sizeof(struct mars_dent), main_checker, dummy_worker, &handler_global, 3);
|
||||
status = mars_dent_work(
|
||||
&handler_global,
|
||||
path,
|
||||
sizeof(struct mars_dent),
|
||||
main_checker,
|
||||
dummy_worker,
|
||||
&handler_global,
|
||||
3);
|
||||
|
||||
down(&brick->socket_sem);
|
||||
status = mars_send_dent_list(sock, &handler_global.dent_anchor);
|
||||
|
Loading…
Reference in New Issue
Block a user