summaryrefslogtreecommitdiffstats
path: root/src/privsep-root.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-06-04 21:49:37 +0100
committerRoy Marples <roy@marples.name>2020-06-04 21:49:37 +0100
commitd8abf7196114e205e2b6a6318111ea4b3f948668 (patch)
treeb8399c3d06fd2a3dddc7e5679601a2b194c3168e /src/privsep-root.c
parenta7b29175bb2a47d9efc6c20599ea8d50100bafe2 (diff)
downloaddhcpcd-d8abf7196114e205e2b6a6318111ea4b3f948668.tar.xz
Fix installing the embedded config as a file.
Diffstat (limited to 'src/privsep-root.c')
-rw-r--r--src/privsep-root.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/privsep-root.c b/src/privsep-root.c
index fdf43856..512dfcc0 100644
--- a/src/privsep-root.c
+++ b/src/privsep-root.c
@@ -297,6 +297,10 @@ ps_root_validpath(const struct dhcpcd_ctx *ctx, uint16_t cmd, const char *path)
return false;
if (cmd == PS_READFILE) {
+#ifdef EMBEDDED_CONFIG
+ if (strcmp(ctx->cffile, EMBEDDED_CONFIG) == 0)
+ return true;
+#endif
if (strcmp(ctx->cffile, path) == 0)
return true;
}