summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-05-05 17:34:54 +0100
committerRoy Marples <roy@marples.name>2020-05-05 17:34:54 +0100
commit4934b0f3357194d28c57f6561d74442f4c7430e5 (patch)
tree24fe848833709b94723a4fe555ff0028e5d51b66 /configure
parent725b0bd3faa5f9c4417c71097e4fb01608f5f953 (diff)
downloaddhcpcd-4934b0f3357194d28c57f6561d74442f4c7430e5.tar.xz
privsep: Document any overridden chroot directory.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index 1b6387b7..58fcd808 100755
--- a/configure
+++ b/configure
@@ -583,6 +583,7 @@ if [ "$PRIVSEP" = yes ]; then
echo "PRIVSEP_USER?= $PRIVSEP_USER" >>$CONFIG_MK
if [ -n "$PRIVSEP_CHROOT" ]; then
echo "PRIVSEP_CHROOT= $PRIVSEP_CHROOT" >>$CONFIG_MK
+ echo "SED_CHROOT= -e 's:@CHDIR^@.*@CHDIR\$\$@:default of:g' -e 's:@CHDIR@:.Pa \${PRIVSEP_CHROOT} .:g'" >>$CONFIG_MK
fi
echo "#ifndef PRIVSEP_USER" >>$CONFIG_H
echo "#define PRIVSEP_USER \"$PRIVSEP_USER\"" >>$CONFIG_H