From a4225b9ebf17809ce459a4c5574131ed509d4f81 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Sat, 18 Mar 2017 10:29:39 +0100 Subject: [PATCH] Don't use full path for file_remote --- nmrp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.25.1