Don't use full path for file_remote

This commit is contained in:
Joseph C. Lehner 2017-03-18 10:29:39 +01:00
parent f36d82d333
commit a4225b9ebf

4
nmrp.c
View file

@ -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;