aboutsummaryrefslogtreecommitdiff
path: root/src/image.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-11-01 15:17:00 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-11-01 15:17:00 -0700
commit2c9bf3e94369e6576ea576eaa82970a8128a59f5 (patch)
treeb13204a1b16c115d3f365fa57a1a842789efe22e /src/image.lisp
parent05164a19652f9b0e7ed70f7030235b048dc4dad7 (diff)
downloadconsfigurator-2c9bf3e94369e6576ea576eaa82970a8128a59f5.tar.gz
:SETUID: pass target uid to POSIX-LOGIN-ENVIRONMENT for correct PATH
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/image.lisp')
-rw-r--r--src/image.lisp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/image.lisp b/src/image.lisp
index 3c580ca..82bd569 100644
--- a/src/image.lisp
+++ b/src/image.lisp
@@ -93,7 +93,9 @@ Thus, PREREQUEST must not start up any threads."
,,@forms)))
`(with-fork-request
,(wrap '`(posix-login-environment
- ,(get-connattr :remote-user) ,(get-connattr :remote-home))
+ ,(get-connattr :remote-uid)
+ ,(get-connattr :remote-user)
+ ,(get-connattr :remote-home))
prerequest)
,(wrap request) (,out ,err ,exit)
,@forms)))