Don't use full path for file_remote
This commit is contained in:
parent
f36d82d333
commit
a4225b9ebf
1 changed files with 2 additions and 2 deletions
4
nmrp.c
4
nmrp.c
|
|
@ -570,8 +570,8 @@ int nmrp_do(struct nmrpd_args *args)
|
|||
}
|
||||
printf("Received upload request: filename '%s'.\n", filename);
|
||||
} else if (!args->file_remote) {
|
||||
args->file_remote = args->file_local;
|
||||
printf("Received upload request with empty filename.\n");
|
||||
args->file_remote = leafname(args->file_local);
|
||||
printf("Received upload request without filename.\n");
|
||||
}
|
||||
|
||||
status = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue