diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-01-15 20:58:07 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-01-15 20:58:07 +0000 |
commit | 02921bec58309179a4d9465e10028cb8a034c204 (patch) | |
tree | 2e6eb0573a7cad23b8eb2b9dccfc4edff29c7e37 /gnu/usr.sbin | |
parent | 249395028cd5152a22beb827afe020a69b842928 (diff) |
remove unused files
Diffstat (limited to 'gnu/usr.sbin')
-rw-r--r-- | gnu/usr.sbin/sendmail/devtools/M4/UNIX/smlib.m4 | 28 | ||||
-rw-r--r-- | gnu/usr.sbin/sendmail/devtools/OS/AIX.5.0 | 14 | ||||
-rw-r--r-- | gnu/usr.sbin/sendmail/devtools/OS/OSF1.V5.0 | 12 | ||||
-rw-r--r-- | gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.9 | 20 | ||||
-rw-r--r-- | gnu/usr.sbin/sendmail/test/t_setuid.c | 101 | ||||
-rw-r--r-- | gnu/usr.sbin/sendmail/test/t_snprintf.c | 24 |
6 files changed, 0 insertions, 199 deletions
diff --git a/gnu/usr.sbin/sendmail/devtools/M4/UNIX/smlib.m4 b/gnu/usr.sbin/sendmail/devtools/M4/UNIX/smlib.m4 deleted file mode 100644 index e306d1c4378..00000000000 --- a/gnu/usr.sbin/sendmail/devtools/M4/UNIX/smlib.m4 +++ /dev/null @@ -1,28 +0,0 @@ -divert(-1) -# -# Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers. -# All rights reserved. -# -# By using this file, you agree to the terms and conditions set -# forth in the LICENSE file which can be found at the top level of -# the sendmail distribution. -# -# -# Definitions for Makefile construction for sendmail -# -# $Id: smlib.m4,v 1.1 2001/01/15 20:51:54 millert Exp $ -# -divert(0)dnl - -define(`confLIBEXT', `a')dnl - -define(`bldPUSH_SMLIB', - `bldPUSH_TARGET(`../lib$1/lib$1.a') -bldPUSH_SMDEPLIB(`../lib$1/lib$1.a') -PREPENDDEF(`confLIBS', `../lib$1/lib$1.a') -divert(bldTARGETS_SECTION) -../lib$1/lib$1.a: - (cd ${SRCDIR}/lib$1; sh Build ${SENDMAIL_BUILD_FLAGS}) -divert -')dnl - diff --git a/gnu/usr.sbin/sendmail/devtools/OS/AIX.5.0 b/gnu/usr.sbin/sendmail/devtools/OS/AIX.5.0 deleted file mode 100644 index 59a29ad2a6f..00000000000 --- a/gnu/usr.sbin/sendmail/devtools/OS/AIX.5.0 +++ /dev/null @@ -1,14 +0,0 @@ -# $Id: AIX.5.0,v 1.1 2001/01/15 20:51:55 millert Exp $ -define(`confMAPDEF', `-DNDBM -DNIS -DMAP_REGEX') -define(`confENVDEF', `-D_AIX4=40300 -D_AIX5=50000 -DSM_OS=sm_os_aix') -define(`confOPTIMIZE', `-O3 -qstrict') -define(`confCC', `/usr/vac/bin/xlc') -define(`confLIBS', `-ldbm') -define(`confINSTALL', `/usr/ucb/install') -define(`confEBINDIR', `/usr/lib') -define(`confSBINGRP', `system') -define(`confDEPEND_TYPE', `AIX') -define(`confLDOPTS', `-blibpath:/usr/lib:/lib') - -define(`confMTLDOPTS', `-lpthread') -define(`confLDOPTS_SO', `-Wl,-G -Wl,-bexpall') diff --git a/gnu/usr.sbin/sendmail/devtools/OS/OSF1.V5.0 b/gnu/usr.sbin/sendmail/devtools/OS/OSF1.V5.0 deleted file mode 100644 index 1d5f3e211ce..00000000000 --- a/gnu/usr.sbin/sendmail/devtools/OS/OSF1.V5.0 +++ /dev/null @@ -1,12 +0,0 @@ -# $Id: OSF1.V5.0,v 1.1 2001/01/15 20:52:00 millert Exp $ -define(`confCC', `cc -std1 -Olimit 1000') -define(`confMAPDEF', `-DNDBM -DNIS -DMAP_REGEX') -define(`confENVDEF', `-DHASSNPRINTF=1') -define(`confLIBS', `-ldbm') -define(`confSTDIR', `/var/adm/sendmail') -define(`confINSTALL', `installbsd') -define(`confEBINDIR', `/usr/lbin') -define(`confUBINDIR', `${BINDIR}') -define(`confDEPEND_TYPE', `CC-M') - -define(`confMTLDOPTS', `-lpthread') diff --git a/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.9 b/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.9 deleted file mode 100644 index 8fab1306a39..00000000000 --- a/gnu/usr.sbin/sendmail/devtools/OS/SunOS.5.9 +++ /dev/null @@ -1,20 +0,0 @@ -# $Id: SunOS.5.9,v 1.1 2001/01/15 20:52:03 millert Exp $ -define(`confCC', `gcc') -define(`confLDOPTS_SO', `-G') -define(`confBEFORE', `sysexits.h') -define(`confMAPDEF', `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DLDAPMAP') -define(`confENVDEF', `-DSOLARIS=20900 -DNETINET6') -define(`confLIBS', `-lsocket -lnsl -lldap') -define(`confMTLDOPTS', `-lpthread') -define(`confMBINDIR', `/usr/lib') -define(`confEBINDIR', `/usr/lib') -define(`confSBINGRP', `sys') -define(`confINSTALL', `${BUILDBIN}/install.sh') -define(`confDEPEND_TYPE', `CC-M') -PUSHDIVERT(3) -sysexits.h: - if [ -r /usr/include/sysexits.h ]; \ - then \ - ln -s /usr/include/sysexits.h; \ - fi -POPDIVERT diff --git a/gnu/usr.sbin/sendmail/test/t_setuid.c b/gnu/usr.sbin/sendmail/test/t_setuid.c deleted file mode 100644 index 7e54189bf49..00000000000 --- a/gnu/usr.sbin/sendmail/test/t_setuid.c +++ /dev/null @@ -1,101 +0,0 @@ -/* -** This program checks to see if your version of setuid works. -** Compile it, make it setuid root, and run it as yourself (NOT as -** root). -** -** NOTE: This should work everywhere, but Linux has the ability -** to use the undocumented setcap() call to make this break. -** -** Compilation is trivial -- just "cc t_setuid.c". Make it setuid, -** root and then execute it as a non-root user. -*/ - -#include <sys/types.h> -#include <unistd.h> -#include <stdio.h> - -#ifndef lint -static char id[] = "@(#)$Id: t_setuid.c,v 1.1 2001/01/15 20:52:20 millert Exp $"; -#endif /* ! lint */ - -static void -printuids(str, r, e) - char *str; - int r, e; -{ - printf("%s (should be %d/%d): r/euid=%d/%d\n", str, r, e, - getuid(), geteuid()); -} - -int -main(argc, argv) - int argc; - char **argv; -{ - int fail = 0; - uid_t realuid = getuid(); - - printuids("initial uids", realuid, 0); - - if (geteuid() != 0) - { - printf("SETUP ERROR: re-run setuid root\n"); - exit(1); - } - - if (getuid() == 0) - { - printf("SETUP ERROR: must be run by a non-root user\n"); - exit(1); - } - - if (setuid(1) < 0) - printf("setuid(1) failure\n"); - printuids("after setuid(1)", 1, 1); - - if (geteuid() != 1) - { - fail++; - printf("MAYDAY! Wrong effective uid\n"); - } - - if (getuid() != 1) - { - fail++; - printf("MAYDAY! Wrong real uid\n"); - } - - - /* do activity here */ - if (setuid(0) == 0) - { - fail++; - printf("MAYDAY! setuid(0) succeeded (should have failed)\n"); - } - else - { - printf("setuid(0) failed (this is correct)\n"); - } - printuids("after setuid(0)", 1, 1); - - if (geteuid() != 1) - { - fail++; - printf("MAYDAY! Wrong effective uid\n"); - } - if (getuid() != 1) - { - fail++; - printf("MAYDAY! Wrong real uid\n"); - } - printf("\n"); - - if (fail) - { - printf("\nThis system cannot use setuid (maybe use setreuid)\n"); - exit(1); - } - - printf("\nIt is safe to use setuid on this system\n"); - exit(0); -} diff --git a/gnu/usr.sbin/sendmail/test/t_snprintf.c b/gnu/usr.sbin/sendmail/test/t_snprintf.c deleted file mode 100644 index 4789f4974f0..00000000000 --- a/gnu/usr.sbin/sendmail/test/t_snprintf.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <stdio.h> -#include <sysexits.h> - -#define TEST_STRING "1234567890" - -int -main(argc, argv) - int argc; - char **argv; -{ - int r; - char buf[5]; - - r = snprintf(buf, sizeof buf, "%s", TEST_STRING); - - if (buf[sizeof buf - 1] != '\0') - { - fprintf(stderr, "Add the following to devtools/Site/site.config.m4:\n\n"); - fprintf(stderr, "APPENDDEF(`confENVDEF', `-DSNPRINTF_IS_BROKEN=1')\n\n"); - exit(EX_OSERR); - } - fprintf(stderr, "snprintf() appears to work properly\n"); - exit(EX_OK); -} |