diff options
author | joerg <joerg@pkgsrc.org> | 2006-05-09 19:24:24 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-05-09 19:24:24 +0000 |
commit | 58f24cc16ee919c84f8090e27c77528ace48ecb3 (patch) | |
tree | 939d3e0da66de429820272903f173f3f03ea5cb2 /security/srp_client/patches | |
parent | e2b713b44c5ef331a175db86fad7324e151ef210 (diff) | |
download | pkgsrc-58f24cc16ee919c84f8090e27c77528ace48ecb3.tar.gz |
Fix errno. Force USE_TERMIO on DragonFly.
Hide ut assignment in utmp.c (patch-aj), it doesn't exist at least in the
code path DragonFly is taking.
Diffstat (limited to 'security/srp_client/patches')
-rw-r--r-- | security/srp_client/patches/patch-aj | 16 | ||||
-rw-r--r-- | security/srp_client/patches/patch-ak | 19 | ||||
-rw-r--r-- | security/srp_client/patches/patch-al | 13 | ||||
-rw-r--r-- | security/srp_client/patches/patch-am | 12 | ||||
-rw-r--r-- | security/srp_client/patches/patch-an | 13 | ||||
-rw-r--r-- | security/srp_client/patches/patch-ao | 20 | ||||
-rw-r--r-- | security/srp_client/patches/patch-ap | 21 | ||||
-rw-r--r-- | security/srp_client/patches/patch-aq | 15 | ||||
-rw-r--r-- | security/srp_client/patches/patch-ar | 24 | ||||
-rw-r--r-- | security/srp_client/patches/patch-as | 10 | ||||
-rw-r--r-- | security/srp_client/patches/patch-at | 12 | ||||
-rw-r--r-- | security/srp_client/patches/patch-au | 12 | ||||
-rw-r--r-- | security/srp_client/patches/patch-av | 12 |
13 files changed, 192 insertions, 7 deletions
diff --git a/security/srp_client/patches/patch-aj b/security/srp_client/patches/patch-aj index 21af451fc9b..8b69530ae2a 100644 --- a/security/srp_client/patches/patch-aj +++ b/security/srp_client/patches/patch-aj @@ -1,4 +1,4 @@ -$NetBSD: patch-aj,v 1.2 2004/09/08 14:30:00 markd Exp $ +$NetBSD: patch-aj,v 1.3 2006/05/09 19:24:24 joerg Exp $ --- base/libmisc/utmp.c.orig 1998-12-10 14:43:22.000000000 +1300 +++ base/libmisc/utmp.c @@ -15,16 +15,18 @@ $NetBSD: patch-aj,v 1.2 2004/09/08 14:30:00 markd Exp $ #include <fcntl.h> #include <stdio.h> -@@ -93,6 +99,8 @@ checkutmp (picky) +@@ -93,6 +99,10 @@ checkutmp (picky) #endif #endif ++#ifdef LOGIN_PROCESS /* USG */ + ut = NULL; ++#endif + #if HAVE_UTMPX_H setutxent (); #endif -@@ -141,17 +149,21 @@ checkutmp (picky) +@@ -141,17 +151,21 @@ checkutmp (picky) if (utx) utxent = *utx; #endif @@ -46,7 +48,7 @@ $NetBSD: patch-aj,v 1.2 2004/09/08 14:30:00 markd Exp $ if (!ut) { puts(NO_UTENT); -@@ -188,6 +200,7 @@ checkutmp (picky) +@@ -188,6 +202,7 @@ checkutmp (picky) if (strncmp(line, "/dev/", 5) == 0) line += 5; @@ -54,7 +56,7 @@ $NetBSD: patch-aj,v 1.2 2004/09/08 14:30:00 markd Exp $ strncpy (utent.ut_line, line, sizeof utent.ut_line); if ((ut = getutline(&utent))) strncpy(utent.ut_id, ut->ut_id, sizeof ut->ut_id); -@@ -206,6 +219,7 @@ checkutmp (picky) +@@ -206,6 +221,7 @@ checkutmp (picky) gettimeofday((struct timeval *) &utxent.ut_tv, NULL); utent.ut_time = utxent.ut_tv.tv_sec; #endif @@ -62,7 +64,7 @@ $NetBSD: patch-aj,v 1.2 2004/09/08 14:30:00 markd Exp $ } #else /* !USG */ -@@ -283,6 +297,7 @@ setutmp (name, line) +@@ -283,6 +299,7 @@ setutmp (name, line) break; } } @@ -70,7 +72,7 @@ $NetBSD: patch-aj,v 1.2 2004/09/08 14:30:00 markd Exp $ while (utmp = getutent ()) { if (utmp->ut_pid == pid) { found_utmp = 1; -@@ -357,6 +372,7 @@ setutmp (name, line) +@@ -357,6 +374,7 @@ setutmp (name, line) utxent = utxline; utent = utline; diff --git a/security/srp_client/patches/patch-ak b/security/srp_client/patches/patch-ak new file mode 100644 index 00000000000..87d18421b48 --- /dev/null +++ b/security/srp_client/patches/patch-ak @@ -0,0 +1,19 @@ +$NetBSD: patch-ak,v 1.1 2006/05/09 19:24:24 joerg Exp $ + +--- libsrp/srptest.c.orig 2006-01-20 00:06:08.000000000 +0000 ++++ libsrp/srptest.c +@@ -20,13 +20,12 @@ + * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + ++#include <errno.h> + #include <stdio.h> + #include "t_defines.h" + #include "t_pwd.h" + #include "t_sha.h" + +-extern int errno; +- + main(argc, argv) + int argc; + char **argv; diff --git a/security/srp_client/patches/patch-al b/security/srp_client/patches/patch-al new file mode 100644 index 00000000000..f6f22d215e0 --- /dev/null +++ b/security/srp_client/patches/patch-al @@ -0,0 +1,13 @@ +$NetBSD: patch-al,v 1.1 2006/05/09 19:24:24 joerg Exp $ + +--- base/lib/port.c.orig 2006-01-20 00:09:03.000000000 +0000 ++++ base/lib/port.c +@@ -38,8 +38,6 @@ RCSID("$Id: port.c,v 1.2 1997/05/01 23:1 + #include "defines.h" + #include "port.h" + +-extern int errno; +- + static FILE *ports; + + /* diff --git a/security/srp_client/patches/patch-am b/security/srp_client/patches/patch-am new file mode 100644 index 00000000000..aa2df1f9202 --- /dev/null +++ b/security/srp_client/patches/patch-am @@ -0,0 +1,12 @@ +$NetBSD: patch-am,v 1.1 2006/05/09 19:24:24 joerg Exp $ + +--- base/libmisc/login_access.c.orig 2006-01-20 00:09:42.000000000 +0000 ++++ base/libmisc/login_access.c +@@ -42,7 +42,6 @@ RCSID("$Id: login_access.c,v 1.2 1997/05 + #include <stdlib.h> + + extern struct group *getgrnam(); +-extern int errno; + + #if !defined(MAXHOSTNAMELEN) || (MAXHOSTNAMELEN < 64) + #undef MAXHOSTNAMELEN diff --git a/security/srp_client/patches/patch-an b/security/srp_client/patches/patch-an new file mode 100644 index 00000000000..2db3fa76e4d --- /dev/null +++ b/security/srp_client/patches/patch-an @@ -0,0 +1,13 @@ +$NetBSD: patch-an,v 1.1 2006/05/09 19:24:24 joerg Exp $ + +--- base/libmisc/xmalloc.c.orig 2006-05-09 18:10:57.000000000 +0000 ++++ base/libmisc/xmalloc.c +@@ -16,8 +16,6 @@ RCSID("$Id: xmalloc.c,v 1.1.1.1 1996/08/ + + #include "defines.h" + +-extern char *malloc(); +- + char * + xmalloc(size) + unsigned size; diff --git a/security/srp_client/patches/patch-ao b/security/srp_client/patches/patch-ao new file mode 100644 index 00000000000..b16645d0c96 --- /dev/null +++ b/security/srp_client/patches/patch-ao @@ -0,0 +1,20 @@ +$NetBSD: patch-ao,v 1.1 2006/05/09 19:24:24 joerg Exp $ + +--- base/libmisc/chowntty.c.orig 2006-05-09 18:12:33.000000000 +0000 ++++ base/libmisc/chowntty.c +@@ -35,6 +35,7 @@ RCSID("$Id: chowntty.c,v 1.3 1997/05/01 + #include <sys/types.h> + #include <sys/stat.h> + ++#include <errno.h> + #include <stdio.h> + #include <grp.h> + +@@ -72,7 +73,6 @@ chown_tty(tty, info) + const char *tty; + const struct passwd *info; + { +- extern int errno; + char buf[BUFSIZ]; + char *group; /* TTY group name or number */ + struct group *grent; diff --git a/security/srp_client/patches/patch-ap b/security/srp_client/patches/patch-ap new file mode 100644 index 00000000000..eb4ae61d277 --- /dev/null +++ b/security/srp_client/patches/patch-ap @@ -0,0 +1,21 @@ +$NetBSD: patch-ap,v 1.1 2006/05/09 19:24:24 joerg Exp $ + +--- base/src/tconf.c.orig 2006-05-09 18:13:46.000000000 +0000 ++++ base/src/tconf.c +@@ -20,6 +20,7 @@ + * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + ++#include <errno.h> + #include <unistd.h> /* close getlogin */ + #include <stdlib.h> /* atexit exit */ + #include <stdio.h> +@@ -33,8 +34,6 @@ + extern int optind; + extern char *optarg; + +-extern int errno; +- + struct pre_struct { + char * pre_mod; + char * pre_gen; diff --git a/security/srp_client/patches/patch-aq b/security/srp_client/patches/patch-aq new file mode 100644 index 00000000000..bf9f94c7a84 --- /dev/null +++ b/security/srp_client/patches/patch-aq @@ -0,0 +1,15 @@ +$NetBSD: patch-aq,v 1.1 2006/05/09 19:24:24 joerg Exp $ + +--- telnet/libtelnet/read_password.c.orig 2006-05-09 18:56:06.000000000 +0000 ++++ telnet/libtelnet/read_password.c +@@ -52,6 +52,10 @@ static char sccsid[] = "@(#)read_passwor + + #if defined(RSA_ENCPWD) || defined(KRB4_ENCPWD) || defined(SRP) + ++#if defined(__DragonFly__) ++#define USE_TERMIO 1 ++#endif ++ + #include <stdio.h> + #include <strings.h> + #include <sys/ioctl.h> diff --git a/security/srp_client/patches/patch-ar b/security/srp_client/patches/patch-ar new file mode 100644 index 00000000000..fd8e1100f18 --- /dev/null +++ b/security/srp_client/patches/patch-ar @@ -0,0 +1,24 @@ +$NetBSD: patch-ar,v 1.1 2006/05/09 19:24:24 joerg Exp $ + +--- telnet/telnet/externs.h.orig 2006-05-09 18:56:33.000000000 +0000 ++++ telnet/telnet/externs.h +@@ -45,7 +45,7 @@ + #endif + + #ifndef USE_TERMIO +-# if BSD > 43 || defined(SYSV_TERMIO) ++# if BSD > 43 || defined(SYSV_TERMIO) || defined(__DragonFly__) + # define USE_TERMIO + # endif + #endif +@@ -100,10 +100,6 @@ typedef unsigned char cc_t; + + #define SUBBUFSIZE 576 + +-#ifndef CRAY +-extern int errno; /* outside this world */ +-#endif /* !CRAY */ +- + #if !defined(P) + # ifdef __STDC__ + # define P(x) x diff --git a/security/srp_client/patches/patch-as b/security/srp_client/patches/patch-as new file mode 100644 index 00000000000..6d4e1e61717 --- /dev/null +++ b/security/srp_client/patches/patch-as @@ -0,0 +1,10 @@ +$NetBSD: patch-as,v 1.1 2006/05/09 19:24:24 joerg Exp $ + +--- telnet/telnetd/telnetd.h.orig 2006-05-09 18:59:33.000000000 +0000 ++++ telnet/telnetd/telnetd.h +@@ -45,5 +45,4 @@ + + /* other external variables */ + extern char **environ; +-extern int errno; + diff --git a/security/srp_client/patches/patch-at b/security/srp_client/patches/patch-at new file mode 100644 index 00000000000..b82a62baccd --- /dev/null +++ b/security/srp_client/patches/patch-at @@ -0,0 +1,12 @@ +$NetBSD: patch-at,v 1.1 2006/05/09 19:24:24 joerg Exp $ + +--- ftp/ftp/ftp_var.h.orig 2006-05-09 19:00:49.000000000 +0000 ++++ ftp/ftp/ftp_var.h +@@ -131,7 +131,6 @@ extern char macbuf[4096]; + + extern char *tail(); + extern char *remglob(); +-extern int errno; + extern char *mktemp(); + + #if (defined(STDARG) || (defined(__STDC__) && ! defined(VARARGS))) || defined(HAVE_STDARG_H) diff --git a/security/srp_client/patches/patch-au b/security/srp_client/patches/patch-au new file mode 100644 index 00000000000..b2d319f202c --- /dev/null +++ b/security/srp_client/patches/patch-au @@ -0,0 +1,12 @@ +$NetBSD: patch-au,v 1.1 2006/05/09 19:24:24 joerg Exp $ + +--- ftp/ftp/glob.c.orig 2006-05-09 19:03:06.000000000 +0000 ++++ ftp/ftp/glob.c +@@ -76,7 +76,6 @@ static int tglob(); + char **ftpglob(); + char *globerr; + char *home; +-extern int errno; + static char *strspl(), *strend(); + char **copyblk(); + diff --git a/security/srp_client/patches/patch-av b/security/srp_client/patches/patch-av new file mode 100644 index 00000000000..7b86cf6c499 --- /dev/null +++ b/security/srp_client/patches/patch-av @@ -0,0 +1,12 @@ +$NetBSD: patch-av,v 1.1 2006/05/09 19:24:24 joerg Exp $ + +--- ftp/ftpd/ftpd.c.orig 2006-05-09 19:09:46.000000000 +0000 ++++ ftp/ftpd/ftpd.c +@@ -152,7 +152,6 @@ static char *temp_auth_type; + * NOT to be used on this machine. + * Commonly used to disallow uucp. + */ +-extern int errno; + extern char *crypt(); + extern char version[]; + extern char *home; /* pointer to home directory for glob */ |