aboutsummaryrefslogtreecommitdiff
path: root/src/connection/su.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-07-23 12:23:25 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-07-24 12:39:46 -0700
commit10f28b3adb1ed130d116ae3d4c81d098d214d2d8 (patch)
treedd5d0d1faf6e9bcd6962fac6474f9948afd46890 /src/connection/su.lisp
parentb6a83a1bd1c7c69316374c510aaff4b13054271e (diff)
downloadconsfigurator-10f28b3adb1ed130d116ae3d4c81d098d214d2d8.tar.gz
fix comments about -c argument to su(1)
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection/su.lisp')
-rw-r--r--src/connection/su.lisp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connection/su.lisp b/src/connection/su.lisp
index 05df15d..785302f 100644
--- a/src/connection/su.lisp
+++ b/src/connection/su.lisp
@@ -28,7 +28,8 @@
(defclass su-connection (shell-wrap-connection)
((user :initarg :user)))
-;; TODO -c is not portable to other su implementations.
+;; Note that the -c here is an argument to the user's login shell, not the -c
+;; argument to su(1) on, e.g., FreeBSD. So this should be fairly portable.
(defmethod connection-shell-wrap ((connection su-connection) cmd)
(format nil "su ~A -c ~A"
(escape-sh-token (slot-value connection 'user))