mirror of
https://github.com/bstansell/conserver.git
synced 2025-02-20 17:02:47 +00:00
Imported from conserver-6.1.7.tar.gz
This commit is contained in:
parent
acf5e9baf0
commit
38115d7b64
12
CHANGES
12
CHANGES
@ -1,6 +1,16 @@
|
||||
CHANGES
|
||||
=======
|
||||
|
||||
version 6.1.7 (Dec 14, 2000):
|
||||
- Documented no parity option in conserver.cf.man
|
||||
- Lowered default CONNECTTIMEOUT to 10 seconds
|
||||
- Changed more internal references to GNAC
|
||||
- Shell command support just plain broken (tracked down and
|
||||
slain by Rob Joyce <robjoyce@ee.princeton.edu>)
|
||||
- Added a -P option for specifying the password file
|
||||
- CPARITY setting reflected in -V output
|
||||
- New version numbering scheme and packaging
|
||||
|
||||
version 6.16 (Sep 8, 2000):
|
||||
- Changed the main GNAC references to Certainty Solutions
|
||||
- Made the comment blocks in conserver/cons.h a little less
|
||||
@ -81,5 +91,5 @@ before version 6.05:
|
||||
and enhancements of various types were applied.
|
||||
|
||||
#
|
||||
# $Id: CHANGES,v 1.17 2000-09-08 16:12:37-07 bryan Exp $
|
||||
# $Id: CHANGES,v 1.20 2000-12-14 16:32:46-08 bryan Exp $
|
||||
#
|
||||
|
64
FAQ
Normal file
64
FAQ
Normal file
@ -0,0 +1,64 @@
|
||||
|
||||
Conserver FAQ
|
||||
=============
|
||||
|
||||
This is the Conserver FAQ. Any suggestions/corrections/etc should be
|
||||
directed to faq@conserver.com. The FAQ answers the following questions:
|
||||
|
||||
1) Where can I find the software?
|
||||
2) How do I deal with these serial ports?
|
||||
3) How can I tell what compile-time defaults were used?
|
||||
4) What does "conserver: getservbyname: conserver: No such file or
|
||||
directory" mean (or something close to that)?
|
||||
5) What does "console: gethostbyname: console: host lookup error"
|
||||
mean (or something close to that)?
|
||||
6) How do I set up a serial port for no parity?
|
||||
|
||||
|
||||
1) Where can I find the software?
|
||||
|
||||
The latest version can be found at http://www.conserver.com/
|
||||
|
||||
2) How do I wire/hook up serial ports?
|
||||
|
||||
David "Zonker" Harris has a wonderful set of pages that talk about
|
||||
hooking up many types of terminal servers, equipment, etc. It also
|
||||
provides links to other serial port references. You can find his
|
||||
pages at http://www.conserver.com/consoles/.
|
||||
|
||||
Celeste Stokely also has a wealth of references at
|
||||
http://www.stokely.com/. Just look around and be amazed at what
|
||||
you'll find!
|
||||
|
||||
3) How can I tell what compile-time defaults were used?
|
||||
|
||||
The compile-time defaults can be found by running conserver and
|
||||
console with the -V flag. Simple as that.
|
||||
|
||||
4) What does "conserver: getservbyname: conserver: No such file or
|
||||
directory" mean (or something close to that)?
|
||||
|
||||
When conserver was compiled, it was told to use the /etc/services
|
||||
entry of "conserver" (what came after getservbyname:). You'll need
|
||||
to either recompile conserver and hard-code a port number (using
|
||||
PORT instead of SERVICE in conserver/cons.h) or enter "conserver"
|
||||
in /etc/services.
|
||||
|
||||
5) What does "console: gethostbyname: console: host lookup error"
|
||||
mean (or something close to that)?
|
||||
|
||||
When the console command was compiled, it was told to use the
|
||||
hostname "console" (what came after gethostbyname:) as the master
|
||||
conserver host. You'll need to either recompile console with the
|
||||
appropriate name of your conserver host or add an alias of "console".
|
||||
In most cases, adding an alias is my suggestion.
|
||||
|
||||
6) How do I set up a local serial port for no parity?
|
||||
|
||||
The conserver.cf man page will have this in the 6.17 release,
|
||||
but the answer is to use a 'p' after the baud rate. So, '9600p'
|
||||
is 9600 baud, no parity.
|
||||
|
||||
#
|
||||
# $Id: FAQ,v 1.2 2000-12-13 12:20:03-08 bryan Exp $
|
||||
#
|
49
README
49
README
@ -7,37 +7,50 @@ Maintainer/Enhancer
|
||||
formerly Global Networking and Computing (GNAC)
|
||||
|
||||
|
||||
Announcement Mailing List?
|
||||
Mailing Lists
|
||||
|
||||
There are currently two mailing lists available at conserver.com.
|
||||
announce@conserver.com is an announcement-only mailing list for
|
||||
informing of new versions, major developments, etc.
|
||||
users@conserver.com is for general Q&A, discussions, ideas, etc for
|
||||
conserver users. See http://www.conserver.com/ for pointers to
|
||||
these and possibly future lists.
|
||||
|
||||
Is anyone out there interested in being on an announcement
|
||||
mailing list for conserver? If so, drop me a line
|
||||
(bryan@conserver.com) and let me know. I'll start by sending
|
||||
messages when a new version is posted, and perhaps it will grow into
|
||||
something more.
|
||||
|
||||
Origin
|
||||
|
||||
The console server software found here is a heavily modified version
|
||||
originally written by Tom Fine (fine@cis.ohio-state.edu) and then
|
||||
Kevin S Braunsdorf (ksb@cc.purdue.edu). Patches from Robert Olson
|
||||
(olson@mcs.anl.gov) were then applied to get network console support.
|
||||
The console server software found here is a heavily modified
|
||||
version originally written by Tom Fine (fine@cis.ohio-state.edu)
|
||||
and then Kevin S Braunsdorf (ksb+conserver@sa.fedex.com). Patches
|
||||
from Robert Olson (olson@mcs.anl.gov) were then applied to get
|
||||
network console support.
|
||||
|
||||
Arnold de Leon (arnold@corp.webtv.net) then fixed various bugs and
|
||||
added enhancements while at Synopsys. I then took the result and
|
||||
continued fixing things and adding features we found useful.
|
||||
Certainty Solutions has been supporting my coding efforts (in too
|
||||
many ways to list) since 1996.
|
||||
|
||||
|
||||
The Certainty Solutions Version
|
||||
The conserver.com Distribution
|
||||
|
||||
The result is a combination of many people's work. We (Certainty
|
||||
Solutions) are releasing this combination in hopes that it will help
|
||||
others. There is no warranty or support implied by our distribution
|
||||
of the software.
|
||||
The result is a combination of many people's work. This version is
|
||||
being released in hopes that it will help others. There is no
|
||||
warranty or support implied by the distribution of the software.
|
||||
|
||||
As of version 6.1.7, the packaging and numbering sheme has
|
||||
changed. I used to package conserver as conserver-GNAC-v.vv.
|
||||
Since GNAC (now Certainty Solutions) has changed it's name I've
|
||||
decided to drop the GNAC portion and use a 3 digit version number
|
||||
(conserver-v.v.v). Why change the version numbering? I need to
|
||||
differenciate this thread of the code from the original authors and
|
||||
I couldn't come up with a good replacement for the GNAC name - sad,
|
||||
but true.
|
||||
|
||||
|
||||
Downloading
|
||||
|
||||
The latest version can be found at ftp://ftp.conserver.com/conserver/.
|
||||
The latest version can be found at http://www.conserver.com/.
|
||||
|
||||
|
||||
Other Good Information
|
||||
@ -45,8 +58,8 @@ Other Good Information
|
||||
Zonker Harris has fabulous documents regarding the hookup
|
||||
of consoles to terminal servers and other such devices. His
|
||||
Greater Scroll of Console Knowledge is a great place to start
|
||||
(http://www.gnac.com/consoles/).
|
||||
(http://www.conserver.com/consoles/).
|
||||
|
||||
#
|
||||
# $Id: README,v 1.9 2000-09-08 16:14:23-07 bryan Exp $
|
||||
# $Id: README,v 1.12 2000-12-14 16:31:04-08 bryan Exp $
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $Id: conserver.cf.man,v 1.5 1999-08-24 14:50:54-07 bryan Exp $
|
||||
.\" $Id: conserver.cf.man,v 1.6 2000-12-11 17:49:08-08 bryan Exp $
|
||||
.\" @(#)constab.5 01/06/91 OSU CIS; Thomas A. Fine
|
||||
.TH CONSERVER.CF 4 "Local"
|
||||
.SH NAME
|
||||
@ -33,7 +33,7 @@ it is used to refer to the server when using the console program.
|
||||
The \fIbaud\fP rate is the speed and parity for this console.
|
||||
Speed may be given as an integer,
|
||||
parity only requires the first letter of any of: even, odd, mark, space.
|
||||
the conserver will send connections for this server to \fIconserver\fP.
|
||||
For no parity, use the character 'p'.
|
||||
.PP
|
||||
!\fIhost\fP - the hostname of the server to connect to.
|
||||
A socket connection will be made to port \fIport\fP (an integer).
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: access.c,v 5.14 2000-03-02 02:47:04-08 bryan Exp $
|
||||
* $Id: access.c,v 5.15 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: access.h,v 5.8 1999-01-26 20:35:17-08 bryan Exp $
|
||||
* $Id: access.h,v 5.9 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: client.c,v 5.21 1999-01-26 20:35:17-08 bryan Exp $
|
||||
* $Id: client.c,v 5.22 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: client.h,v 5.13 1999-02-02 11:36:26-08 bryan Exp $
|
||||
* $Id: client.h,v 5.14 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: cons-default.h,v 1.5 2000-09-08 16:09:04-07 bryan Exp $
|
||||
* $Id: cons-default.h,v 1.7 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -46,4 +48,4 @@
|
||||
/*
|
||||
* TCP connection timeout
|
||||
*/
|
||||
#define CONNECTTIMEOUT 60
|
||||
#define CONNECTTIMEOUT 10
|
||||
|
@ -1,7 +1,9 @@
|
||||
/*
|
||||
* $Id: cons-gnac.h,v 5.43 1999-01-26 20:35:17-08 bryan Exp $
|
||||
* $Id: cons-gnac.h,v 5.44 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: cons-test.h,v 1.5 1999-01-26 20:35:17-08 bryan Exp $
|
||||
* $Id: cons-test.h,v 1.6 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
#define PORT 7777
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: consent.c,v 5.35 2000-03-06 17:26:16-08 bryan Exp $
|
||||
* $Id: consent.c,v 5.36 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: consent.h,v 5.14 2000-03-06 17:11:34-08 bryan Exp $
|
||||
* $Id: consent.h,v 5.15 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: fallback.c,v 5.21 1999-01-26 20:35:17-08 bryan Exp $
|
||||
* $Id: fallback.c,v 5.22 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: group.c,v 5.59 2000-03-06 17:23:55-08 bryan Exp $
|
||||
* $Id: group.c,v 5.63 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -390,9 +392,9 @@ char *pw_string;
|
||||
if ( user = strchr(username, '@') )
|
||||
*user = '\000';
|
||||
|
||||
if ((fp = fopen(PASSWD_FILE, "r")) == NULL) {
|
||||
if ((fp = fopen(pcPasswd, "r")) == NULL) {
|
||||
printf("%s: Cannot open passwd file %s: %s\n",
|
||||
progname, PASSWD_FILE, strerror(errno));
|
||||
progname, pcPasswd, strerror(errno));
|
||||
|
||||
if ((struct passwd *)0 == (pwd = getpwuid(0))) {
|
||||
CSTROUT(pCLServing->fd, "no root passwd?\r\n");
|
||||
@ -406,7 +408,7 @@ char *pw_string;
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
/* printf("Opened passwd file %s\n", PASSWD_FILE);*/
|
||||
/* printf("Opened passwd file %s\n", pcPasswd);*/
|
||||
|
||||
while (fgets(buf, sizeof(buf), fp) != NULL)
|
||||
{
|
||||
@ -596,7 +598,7 @@ int sfd;
|
||||
pCE[iConsole].pCLon = pCE[iConsole].pCLwr = (CLIENT *)0;
|
||||
#if DO_VIRTUAL
|
||||
pCE[iConsole].fdlog = -1;
|
||||
if (0 == pCE->fvirtual) {
|
||||
if (0 == pCE[iConsole].fvirtual) {
|
||||
pCE[iConsole].fdtty = -1;
|
||||
continue;
|
||||
}
|
||||
@ -1255,6 +1257,15 @@ drop:
|
||||
|
||||
case 'c':
|
||||
case 'C':
|
||||
if (pCEServing->isNetworkConsole) {
|
||||
continue;
|
||||
}
|
||||
#if DO_VIRTUAL
|
||||
if (pCEServing->fvirtual) {
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if USE_TERMIOS
|
||||
if (-1 == tcgetattr(pCEServing->fdtty, & sbuf)) {
|
||||
CSTROUT(pCLServing->fd, "failed]\r\n");
|
||||
@ -1509,7 +1520,7 @@ drop:
|
||||
|
||||
case 'v': /* version */
|
||||
case 'V':
|
||||
sprintf(acOut, "version `%s\']\r\n", GNAC_VERSION);
|
||||
sprintf(acOut, "version `%s\']\r\n", THIS_VERSION);
|
||||
(void)write(pCLServing->fd, acOut, strlen(acOut));
|
||||
break;
|
||||
|
||||
@ -1589,9 +1600,15 @@ drop:
|
||||
if (pCEServing->isNetworkConsole) {
|
||||
goto drop;
|
||||
}
|
||||
#if DO_VIRTUAL
|
||||
if (pCEServing->fvirtual) {
|
||||
goto drop;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if USE_TERMIOS
|
||||
if (-1 == tcgetattr(pCEServing->fdtty, & sbuf)) {
|
||||
CSTROUT(pCLServing->fd, "failed]\r\n");
|
||||
CSTROUT(pCLServing->fd, "[failed]\r\n");
|
||||
continue;
|
||||
}
|
||||
if (0 == (sbuf.c_iflag & IXOFF)) {
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: group.h,v 5.10 1999-01-26 20:35:17-08 bryan Exp $
|
||||
* $Id: group.h,v 5.11 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: main.c,v 5.34 2000-03-02 02:40:42-08 bryan Exp $
|
||||
* $Id: main.c,v 5.37 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -58,13 +60,14 @@
|
||||
#endif
|
||||
|
||||
char rcsid[] =
|
||||
"$Id: main.c,v 5.34 2000-03-02 02:40:42-08 bryan Exp $";
|
||||
"$Id: main.c,v 5.37 2000-12-13 12:31:07-08 bryan Exp $";
|
||||
char *progname =
|
||||
rcsid;
|
||||
int fAll = 1, fVerbose = 0, fSoftcar = 0, fNoinit = 0, fDebug = 0;
|
||||
int fAll = 1, fVerbose = 0, fSoftcar = 0, fNoinit = 0, fDebug = 0, fVersion = 0;
|
||||
int fDaemon = 0;
|
||||
char chDefAcc = 'r';
|
||||
char *pcConfig = CONFIG;
|
||||
char *pcPasswd = PASSWD_FILE;
|
||||
int domainHack = 0;
|
||||
|
||||
#if defined(SERVICE)
|
||||
@ -137,6 +140,7 @@ static char *apcLong[] = {
|
||||
"h output this message",
|
||||
"i init console connections on demand",
|
||||
"n do not output summary stream to stdout",
|
||||
"C passwd give a new passwd file to the server process",
|
||||
"v be verbose on startup",
|
||||
"V output version info",
|
||||
(char *)0
|
||||
@ -160,12 +164,17 @@ Version()
|
||||
{
|
||||
auto char acA1[16], acA2[16];
|
||||
|
||||
printf("%s: %s\n", progname, GNAC_VERSION);
|
||||
printf("%s: %s\n", progname, THIS_VERSION);
|
||||
printf("%s: default access type `%c\'\n", progname, chDefAcc);
|
||||
printf("%s: default escape sequence `%s%s\'\n", progname, FmtCtl(DEFATTN, acA1), FmtCtl(DEFESC, acA2));
|
||||
printf("%s: configuration in `%s\'\n", progname, pcConfig);
|
||||
printf("%s: password in `%s\'\n", progname, PASSWD_FILE);
|
||||
printf("%s: password in `%s\'\n", progname, pcPasswd);
|
||||
printf("%s: limited to %d group%s with %d member%s\n", progname, MAXGRP, MAXGRP == 1 ? "" : "s", MAXMEMB, MAXMEMB == 1 ? "" : "s");
|
||||
#if CPARITY
|
||||
printf("%s: high-bit of data stripped (7-bit clean)\n", progname);
|
||||
#else
|
||||
printf("%s: high-bit of data *not* stripped (8-bit clean)\n", progname);
|
||||
#endif
|
||||
#if defined(SERVICE)
|
||||
{
|
||||
struct servent *pSE;
|
||||
@ -205,8 +214,8 @@ char **argv;
|
||||
register int i, j;
|
||||
register FILE *fpConfig;
|
||||
auto struct hostent *hpMe;
|
||||
static char acOpts[] = "a:C:dDhinsVv",
|
||||
u_terse[] = " [-dDhinsvV] [-a type] [-C config]";
|
||||
static char acOpts[] = "a:C:dDhinP:sVv",
|
||||
u_terse[] = " [-dDhinsvV] [-a type] [-C config] [-P passwd]";
|
||||
extern int optopt;
|
||||
extern char *optarg;
|
||||
auto REMOTE
|
||||
@ -261,6 +270,9 @@ char **argv;
|
||||
case 'C':
|
||||
pcConfig = optarg;
|
||||
break;
|
||||
case 'P':
|
||||
pcPasswd = optarg;
|
||||
break;
|
||||
case 'd':
|
||||
fDaemon = 1;
|
||||
break;
|
||||
@ -281,8 +293,8 @@ char **argv;
|
||||
fSoftcar ^= 1;
|
||||
break;
|
||||
case 'V':
|
||||
Version();
|
||||
exit(0);
|
||||
fVersion = 1;
|
||||
break;
|
||||
case 'v':
|
||||
fVerbose = 1;
|
||||
break;
|
||||
@ -295,6 +307,11 @@ char **argv;
|
||||
}
|
||||
}
|
||||
|
||||
if (fVersion) {
|
||||
Version();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
#if HAVE_SHADOW
|
||||
/* Why force root??? Cause of getsp*() calls... */
|
||||
if (0 != geteuid()) {
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: main.h,v 5.13 2000-03-02 02:42:17-08 bryan Exp $
|
||||
* $Id: main.h,v 5.15 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -39,6 +41,7 @@ extern char *progname;
|
||||
extern int fAll, fVerbose, fSoftcar, fNoinit, fInteractive, fDebug;
|
||||
extern char chDefAcc;
|
||||
extern char *pcConfig;
|
||||
extern char *pcPasswd;
|
||||
extern struct sockaddr_in in_port;
|
||||
extern char acMyHost[];
|
||||
extern char acMyAddr[];
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: master.c,v 5.25 2000-03-06 17:12:43-08 bryan Exp $
|
||||
* $Id: master.c,v 5.27 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -446,7 +448,7 @@ REMOTE
|
||||
#endif
|
||||
}
|
||||
if (0 == strcmp(acIn, "version")) {
|
||||
sprintf(acOut, "version `%s\'\r\n", GNAC_VERSION);
|
||||
sprintf(acOut, "version `%s\'\r\n", THIS_VERSION);
|
||||
(void)write(cfd, acOut, strlen(acOut));
|
||||
#if TEST_FORK
|
||||
exit(0);
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: master.h,v 5.8 1999-01-26 20:35:17-08 bryan Exp $
|
||||
* $Id: master.h,v 5.9 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: port.h,v 1.15 2000-03-06 18:16:24-08 bryan Exp $
|
||||
* $Id: port.h,v 1.17 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -89,10 +91,10 @@
|
||||
#endif
|
||||
|
||||
/* How long should we wait for a TCP socket to be created when talking
|
||||
* to network terminal servers? 30 second default
|
||||
* to network terminal servers? 10 second default
|
||||
*/
|
||||
#if !defined(CONNECTTIMEOUT)
|
||||
#define CONNECTTIMEOUT 30
|
||||
#define CONNECTTIMEOUT 10
|
||||
#endif
|
||||
|
||||
/* the default escape sequence used to give meta commands
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: readcfg.c,v 5.27 2000-01-05 14:39:39-08 bryan Exp $
|
||||
* $Id: readcfg.c,v 5.28 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: readcfg.h,v 5.8 1999-01-26 20:35:17-08 bryan Exp $
|
||||
* $Id: readcfg.h,v 5.9 2000-12-13 12:31:07-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: version.h,v 1.16 2000-09-08 16:12:59-07 bryan Exp $
|
||||
* $Id: version.h,v 1.19 2000-12-14 16:21:18-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
#define GNAC_VERSION "Certainty Solutions version 6.16"
|
||||
#define THIS_VERSION "conserver.com version 6.1.7"
|
||||
|
@ -1,9 +1,11 @@
|
||||
/*
|
||||
* $Id: console.c,v 5.29 2000-03-06 18:16:44-08 bryan Exp $
|
||||
* $Id: console.c,v 5.31 2000-12-13 12:31:56-08 bryan Exp $
|
||||
*
|
||||
* Copyright conserver.com, 2000
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@conserver.com)
|
||||
*
|
||||
* Copyright GNAC, Inc., 1998
|
||||
*
|
||||
* Maintainer/Enhancer: Bryan Stansell (bryan@gnac.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -74,7 +76,7 @@ extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
static char rcsid[] =
|
||||
"$Id: console.c,v 5.29 2000-03-06 18:16:44-08 bryan Exp $";
|
||||
"$Id: console.c,v 5.31 2000-12-13 12:31:56-08 bryan Exp $";
|
||||
static char *progname =
|
||||
rcsid;
|
||||
int fVerbose = 0, fReplay = 0, fRaw = 0;
|
||||
@ -187,7 +189,7 @@ Version()
|
||||
{
|
||||
register unsigned char *puc;
|
||||
|
||||
printf("%s: %s\n", progname, GNAC_VERSION);
|
||||
printf("%s: %s\n", progname, THIS_VERSION);
|
||||
printf("%s: initial master server `%s\'\n", progname, pcInMaster);
|
||||
printf("%s: default escape sequence `", progname);
|
||||
putCtlc(DEFATTN, stdout);
|
||||
|
Loading…
x
Reference in New Issue
Block a user