From: Joseph C. Lehner Date: Sat, 18 Mar 2017 09:29:39 +0000 (+0100) Subject: Don't use full path for file_remote X-Git-Tag: v0.9.11~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a4225b9ebf17809ce459a4c5574131ed509d4f81;p=oweals%2Fnmrpflash.git Don't use full path for file_remote --- diff --git a/nmrp.c b/nmrp.c index 722fe75..a25a78a 100644 --- a/nmrp.c +++ b/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;