uucheck.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
#define UUCHECK
int Uerrors = 0; /* error count */
/* This unusual include (#include "permission.c") is done because
* uucheck wants to use the global static variable in permission.c
*/
#include "uucp.h"
#include "permission.c"
#include "sysfiles.h"
/* These are here because uucpdefs.c is not used, and
* some routines are referenced (never called within uucheck execution)
* and not included.
*/
#define USAGE "[-v] [-xNUM]"
int Debug=0;
mkdirs(){}
canPath(){}
char *Bnptr;
/* used for READANY and READSOME macros */
/* This is stuff for uucheck */
struct tab
{
char *name;
char *value;
} tab[] =
{
#ifdef CORRUPTDIR
"CORRUPT", CORRUPTDIR,
#endif
"LOGUUCP", LOGUUCP,
"LOGUUX", LOGUUX,
"LOGUUXQT", LOGUUXQT,
"LOGCICO", LOGCICO,
"SEQDIR", SEQDIR,
"STATDIR", STATDIR,
"PERMISSIONS", PERMISSIONS,
"SYSTEMS", SYSTEMS,
"DEVICES", DEVICES ,
"DIALCODES", DIALCODES,
"DIALERS", DIALERS,
#ifdef USRSPOOLLOCKS
#endif
#ifdef NOSTRANGERS
"NOSTRANGERS", NOSTRANGERS,
#endif
"XQTDIR", XQTDIR,
"WORKSPACE", WORKSPACE,
"admin directory", ADMIN,
NULL,
};
extern char *nextarg();
int verbose = 0; /* fsck-like verbosity */
char *argv[];
{
int i;
switch(i){
case 'v':
verbose++;
break;
case 'x':
if (Debug <= 0)
Debug = 1;
#ifdef SMALL
"WARNING: uucheck built with SMALL flag defined -- no debug info available\n");
#endif /* SMALL */
break;
default:
exit(1);
}
}
exit(1);
}
Uerrors++;
}
}
/* check the permissions file */
/* NOTREACHED */
}
int
checkPerm ()
{
int type;
int error=0;
/* type = 0 for LOGNAME, 1 for MACHINE */
?"MACHINE PHASE (when we call or execute their uux requests)"
:"LOGNAME PHASE (when they call us)" );
exit(1);
}
for (;;) {
break;
}
continue;
/* XXX - need to reset defaults here */
fillFlds();
/* if no ReadPath set num to 1--Path already set */
}
}
}
return(error);
}
int
int type;
{
register int i;
register char *p;
int error = 0;
return(0);
while (*p != '\0') {
}
if (callBack()) {
return(0);
}
}
else { /* MACHINE */
while (*p != '\0') {
}
}
}
}
else {
}
}
if (verbose) {
if (noSpool())
(void) printf("\tSent files will be created directly in the target directory.\n");
else {
(void) printf("\t before they are copied to the target directory.\n");
}
}
if (requestOK()) {
}
else {
}
}
}
myname);
Pubdir);
while (*p != '\0') {
}
error++;
}
}
}
return(error);
}
void
cleanup(s)
int s;
{
exit(s);
}