summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-07-29 22:57:39 -0400
committerJune McEnroe <june@causal.agency>2019-07-29 22:57:39 -0400
commit5a235b5660ffd2b05d8bb1c5b812f52951fe1311 (patch)
treea3e8765bcbe36e48ac74b34d2445311ccdfb9071
parentRename wrapper to dispatch (diff)
downloadstream-5a235b5660ffd2b05d8bb1c5b812f52951fe1311.tar.gz
stream-5a235b5660ffd2b05d8bb1c5b812f52951fe1311.zip
Pass original command to dispatch
-rw-r--r--dispatch.c2
-rw-r--r--sshd_config2
2 files changed, 2 insertions, 2 deletions
diff --git a/dispatch.c b/dispatch.c
index b3aaf28..137613e 100644
--- a/dispatch.c
+++ b/dispatch.c
@@ -20,5 +20,5 @@
 #include <sysexits.h>
 
 int main(void) {
-	// TODO: Grab SSH_ORIGINAL_COMMAND, check isatty(3).
+	// TODO: Validate argv, check isatty(3), exec.
 }
diff --git a/sshd_config b/sshd_config
index f7a3ea6..9eb6737 100644
--- a/sshd_config
+++ b/sshd_config
@@ -4,7 +4,7 @@ Match User stream
     PasswordAuthentication yes
     PermitEmptyPasswords yes
     ChrootDirectory /home/stream
-    ForceCommand wrapper
+    ForceCommand dispatch $SSH_ORIGINAL_COMMAND
 
     AllowAgentForwarding no
     AllowTcpForwarding no
ting.sh?h=1.4.1&id=f1fb521a0510cebb4971adf86de39d01cc316df2&follow=1'>Fix about-formatting.shPřemysl Janouch dash failed to parse the script. Signed-off-by: Přemysl Janouch <p.janouch@gmail.com> 2014-01-08Fix some spelling errorsPřemysl Janouch Signed-off-by: Přemysl Janouch <p.janouch@gmail.com> 2014-01-08filters: highlight.sh: add css comments for highlight 2.6 and 3.8Ferry Hubertsin wsconsctlJune McEnroe 2021-02-06Set root window to black on purple snowJune McEnroe 2021-02-06Add xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe 2021-02-06Add xterm output to schemeJune McEnroe/a>John Keeping 2015-08-13ui-tree: use "sane" isgraph()John Keeping 2015-08-13cgit.h: move stdbool.h from ui-shared.hJohn Keeping 2015-08-13cache.c: fix header orderJohn Keeping 2015-08-13configfile.c: don't include system headers directlyJohn Keeping 2015-08-13Remove redundant includesJohn Keeping 2015-08-13Makefile: include Git's config.mak.unameJohn Keeping 2015-08-13tests: allow shell to be overriddenJohn Keeping 2015-08-13redirect: cleanlinessJason A. Donenfeld 2015-08-13redirect: be more careful for different cgi setupsJason A. Donenfeld 2015-08-12ui-log: fix double countingJohn Keeping 2015-08-12log: allow users to follow a fileJohn Keeping 2015-08-12shared: make cgit_diff_tree_cb publicJohn Keeping 2015-08-12t0110: Chain together using &&Jason A. Donenfeld 2015-08-12about: always ensure page has a trailing slashJason A. Donenfeld 2015-08-12filters: apply HTML escapingLazaros Koromilas 2015-08-12git: update to v2.5.0Christian Hesse 2015-08-12Fix processing of repo.hide and repo.ignoreDaniel Reichelt4-05-22Remove use of sysexits.hJune McEnroe 2024-05-22Add photo descriptions from 05-03 and 05-06June McEnroe 2024-05-21Fix = precedence in whenJune McEnroe