Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.sbin/amd/wire-test pull up rev 1.5 from trunk (requ...



details:   https://anonhg.NetBSD.org/src/rev/8a88d8a5e108
branches:  netbsd-1-4
changeset: 469418:8a88d8a5e108
user:      cgd <cgd%NetBSD.org@localhost>
date:      Tue Sep 21 04:53:05 1999 +0000

description:
pull up rev 1.5 from trunk (requested by christos):
  Upgrade amd(8) and related software to fix expoitable stack overflows
  in amq(8), as reported in BUGTRAQ and elsewhere.

diffstat:

 usr.sbin/amd/wire-test/wire-test.c |  17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)

diffs (45 lines):

diff -r 0fa5f0a9b0f4 -r 8a88d8a5e108 usr.sbin/amd/wire-test/wire-test.c
--- a/usr.sbin/amd/wire-test/wire-test.c        Sun Sep 19 15:56:37 1999 +0000
+++ b/usr.sbin/amd/wire-test/wire-test.c        Tue Sep 21 04:53:05 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wire-test.c,v 1.4 1999/02/01 19:05:13 christos Exp $   */
+/*     $NetBSD: wire-test.c,v 1.4.2.1 1999/09/21 04:53:05 cgd Exp $    */
 
 /*
  * Copyright (c) 1997-1999 Erez Zadok
@@ -40,7 +40,7 @@
  *
  *      %W% (Berkeley) %G%
  *
- * Id: wire-test.c,v 1.3 1999/01/10 21:54:44 ezk Exp 
+ * Id: wire-test.c,v 1.4 1999/02/04 07:24:54 ezk Exp 
  *
  */
 
@@ -51,15 +51,6 @@
 
 #define STRMAX 100
 
-/* dummy variables */
-#if 0
-char *progname;
-pid_t mypid;
-serv_state amd_state;
-int foreground, orig_umask;
-int debug_flags;
-#endif
-
 char hostname[MAXHOSTNAMELEN + 1];
 
 
@@ -74,10 +65,6 @@
   struct hostent *hp = 0;
 
   am_set_progname(argv[0]);
-#if 0
-  mypid = getpid();
-  orig_umask = umask(0);
-#endif
 
   if (gethostname(hostname, sizeof(hostname)) < 0) {
     perror(argv[0]);



Home | Main Index | Thread Index | Old Index