[vhffs-dev] [768] Added the wonderful falseshell :) |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 768
Author: crafty
Date: 2007-08-19 21:48:03 +0000 (Sun, 19 Aug 2007)
Log Message:
-----------
Added the wonderful falseshell :)
Modified Paths:
--------------
trunk/AUTHORS
trunk/configure.ac
trunk/vhffs-shells/Makefile.am
Added Paths:
-----------
trunk/vhffs-shells/falseshell.c
Modified: trunk/AUTHORS
===================================================================
--- trunk/AUTHORS 2007-08-18 15:52:40 UTC (rev 767)
+++ trunk/AUTHORS 2007-08-19 21:48:03 UTC (rev 768)
@@ -8,3 +8,4 @@
Contributors :
- Alexandre Cucumel <kiouk at ... dot ...> : Original CSS and templates
- Kryskool from Ornix.org : some modifications on pgsql tables
+ - Samuel Lesueur <crafty@xxxxxxxxxxxxx> : vhffs-forum, falseshell and some other minor contributions
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2007-08-18 15:52:40 UTC (rev 767)
+++ trunk/configure.ac 2007-08-19 21:48:03 UTC (rev 768)
@@ -31,7 +31,7 @@
AC_ARG_WITH(shell-path,
AC_HELP_STRING([--with-shell-path=path],
- [Complete path for tux shell (/bin)]),
+ [Complete path for tux shell and falseshell(/bin)]),
SHELLDIR=$withval,
SHELLDIR=/usr/bin
)
Modified: trunk/vhffs-shells/Makefile.am
===================================================================
--- trunk/vhffs-shells/Makefile.am 2007-08-18 15:52:40 UTC (rev 767)
+++ trunk/vhffs-shells/Makefile.am 2007-08-19 21:48:03 UTC (rev 768)
@@ -1,3 +1,3 @@
.SUFFIXES = .c
bindir = @SHELLDIR@
-bin_PROGRAMS = tuxshell
+bin_PROGRAMS = tuxshell falseshell
Added: trunk/vhffs-shells/falseshell.c
===================================================================
--- trunk/vhffs-shells/falseshell.c (rev 0)
+++ trunk/vhffs-shells/falseshell.c 2007-08-19 21:48:03 UTC (rev 768)
@@ -0,0 +1,30 @@
+/*
+ * falseshell is a non-shell for VHFFS which simply display a message and exit.
+ *
+ * Copyright (C) 2007 Samuel Lesueur <crafty@xxxxxxxxxxxxx>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+int main (void){
+ printf("\nWelcome to VHFFS shell hosting service\n\n"
+ "This is a disabled shell account\n"
+ "You can enable ssh for this account on the panel\n\n");
+ return 1;
+}