aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-02-04 19:19:48 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-02-04 19:19:48 +0000
commit564462232a2572d9bedeb4ac887bab56d245c064 (patch)
treefc1cc4c907607546f36d07b070b3424c53ca67f3 /libexec
parent8bbbe7519d7ac97c4b90da8b6feaca0587607134 (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rbootd/rmpproto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/rbootd/rmpproto.c b/libexec/rbootd/rmpproto.c
index aa4be5647222..a132588101f2 100644
--- a/libexec/rbootd/rmpproto.c
+++ b/libexec/rbootd/rmpproto.c
@@ -330,7 +330,8 @@ SendBootRepl(struct rmp_packet *req, RMPCONN *rconn, char *filelist[])
* stripped file name and spoof the client into thinking that it
* really got what it wanted.
*/
- filename = (filename = strrchr(filepath,'/'))? ++filename: filepath;
+ filename = strrchr(filepath,'/');
+ filename = filename? filename + 1: filepath;
/*
* Check that this is a valid boot file name.