From 9004d5cdd68d73c4beaba6717748b8ac0bf80394 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Mon, 29 Jul 2019 22:55:14 -0400 Subject: Rename wrapper to dispatch --- .gitignore | 2 +- Makefile | 2 +- dispatch.c | 24 ++++++++++++++++++++++++ wrapper.c | 24 ------------------------ 4 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 dispatch.c delete mode 100644 wrapper.c diff --git a/.gitignore b/.gitignore index 734cf37..8dee7f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ chroot.tar config.mk +dispatch ingest menu root @@ -7,4 +8,3 @@ setup stream tags view -wrapper diff --git a/Makefile b/Makefile index a510ad2..94befab 100644 --- a/Makefile +++ b/Makefile @@ -7,12 +7,12 @@ LDLIBS = -lutil -include config.mk +BINS += dispatch BINS += ingest BINS += menu BINS += setup BINS += stream BINS += view -BINS += wrapper all: tags ${BINS} diff --git a/dispatch.c b/dispatch.c new file mode 100644 index 0000000..b3aaf28 --- /dev/null +++ b/dispatch.c @@ -0,0 +1,24 @@ +/* Copyright (C) 2019 C. McEnroe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +#include +#include +#include +#include + +int main(void) { + // TODO: Grab SSH_ORIGINAL_COMMAND, check isatty(3). +} diff --git a/wrapper.c b/wrapper.c deleted file mode 100644 index b3aaf28..0000000 --- a/wrapper.c +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (C) 2019 C. McEnroe - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -#include -#include -#include -#include - -int main(void) { - // TODO: Grab SSH_ORIGINAL_COMMAND, check isatty(3). -} -- cgit 1.4.1