HDTenEightyP/NetNews huggingface dataset:
From: Roberto@sunsci.cern.ch (Roberto Divia CERN-ECP/DS +41 22 767 4994)
Subject: Re: GNU Netfax
Organization: CERN - European Laboratory for Particle Physics
Date: Thu, 12 Nov 1992 07:34:54 GMT

Well, I give up. After some days of attempts, I still cannot send faxes
to faxing machines. I can send to other computers, which makes me think
something is wrong with the Hw I am using. If someone wants to take over
the package and try it out, it would be very appreciated.

   I added some new features, such as a delay before  answering the
phone  (in number of rings), support  for the lwf  filter, a fix to
receive incoming faxes and a better set of  Makefiles (including an
"install" target). If you want to have a  go, just ring me. Or send
me a fax...
-- 
|   Roberto Divia`      | Love at  first sight  is one of the greatest |
|   =============       | labor-saving devices the world has ever seen |
|  CERN :  European Laboratory for Particle Physics,  1211  Geneva  23 |
|  Switzerland (CH)                                                    |



-- 
|   Roberto Divia`      | Love at  first sight  is one of the greatest |
|   =============       | labor-saving devices the world has ever seen |
|  CERN :  European Laboratory for Particle Physics,  1211  Geneva  23 |
|  Switzerland (CH)                                                    |
Newsgroups: gnu.misc.discuss
From: dhess@Xenon.Stanford.EDU (Drew William Hess)
Subject: Ghostview for Windows?
Keywords: ghostview gnu postscript windows
Organization: CS Department, Stanford University, California, USA
Distribution: gnu
Date:  8 Nov 92 19:33:44 GMT

Does Ghostview exist for Microsoft Windows?  If so, could somebody please
point me to it?  Thanks.

-dwh-
dhess@cs.stanford.edu
From: sbpress@csws20 (Gregory Forte)
Newsgroups: gnu.misc.discuss
Subject: FTP for BASH
Date: 6 Nov 92 17:38:09 GMT
Organization: Dept of Computer Science, State U of NY at Stony Brook
X-Newsreader: Tin 1.1 PL4

Where can I get information on BASH?
either by FTP of a book.


Thanks
sbpress@ic.sunysb.edu
From: rodmur@ecst.csuchico.edu (Dale Harris)
Newsgroups: gnu.misc.discuss
Subject: GNU ftp???
Date: 6 Nov 92 21:32:18 GMT
Organization: California State University, Chico
NNTP-Posting-Host: hairball.ecst.csuchico.edu

I've heard a rumors that there is a GNU ftp out there somewhere but I
can't seem to find anything.  Anyone have information about GNU ftp?  Does
it exist?


-- 
   __        _                     Dale A. Harris  {rodmur@ecst.csuchico.edu} 
  /  )      //                           /   "Is gone... he left for Mexico to
 /  / __.  // _      , , , __.  _       /_  _  __  _  get a job, due to the
/__/_(_/|_</_</_    (_(_/_(_/|_/_)_    / /_</_/ (_</_ deterioting US economy ;)
Newsgroups: gnu.gdb.bug
From: gnu@cygnus.com
Subject: Re: Problem with `s' (step) in gdb-4.7
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 9 Nov 1992 06:05:18 GMT

If you send us a real bug report instead of a rumor of a bug, we'll
look at the problem.

	John Gilmore
From: yigal@unifi.UUCP (Yigal Hochberg)
Newsgroups: gnu.gdb.bug
Subject: [yigal: gdb 4.7 on SCO]
Date: 12 Nov 92 04:48:50 GMT
Distribution: gnu
Organization: GNUs Not Usenet

Date: Thu, 12 Nov 92 09:45:52 -0500
From: yigal (Yigal Hochberg)
To: bug-gdb@prep.ai.mit.edu
Subject: gdb 4.7 on SCO


Hello GDB people,

I received gdb-4.7 from GNU and surprisingly enough compiled it SMOOTHLY
on SCO. There are two strange things:

a) gdb must be owned by root (but this is not very big limitation)

b) When I try to debug core file it does not recognize the format.

Any ideas ?


Thank you in advance,

- Yigal
Newsgroups: gnu.gdb.bug
From: leisner@wrc.xerox.COM ( Marty Leisner)
Subject: Re: How do I see make breakpoints?
Reply-To: leisner@eso.mc.xerox.com
Organization: Xerox
Distribution: gnu
Date: Thu, 12 Nov 1992 16:51:55 GMT

 Marty Leisner (leisner@wrc.xerox.COM) wrote:
: I'm using gdb 4.7...how do I see all my breakpoints in one command --
: or even 1 breakpoint??  I looked at help breakpoints and didn't see anything
: (or maybe I didn't know I was looking at it...)
: 
: --
: marty
: leisner.henr801c@xerox.com  leisner@eso.mc.xerox.com
: Member of the League for Programming Freedom

Well, I found out...(I looked at the gdb quick reference sheet).

Perhaps when you do help  online, it should be organized the
way the info sheet is...
--
marty
leisner.henr801c@xerox.com  leisner@eso.mc.xerox.com
Member of the League for Programming Freedom

Newsgroups: gnu.gdb.bug
From: jcasey@netcom.com (John Casey)
Subject: gcc.2.2.2 lost typecast info for gdb (sco-sysv.3.2)
Organization: Netcom - Online Communication Services  (408 241-9760 guest)
Distribution: gnu
Date: Wed, 11 Nov 1992 16:10:00 GMT

gdb returns :

$1 = (struct <opaque> *) some addr


when trying to print out  a complex structurei or C++ class.  This
does not happen all of the time, however.  I am usually able to fix the 
problem by explicit typecasting, 

(gdb) p (struct name *) var.



Am I doing something wrong or is this how gdb is supposed to work?
I can send you a specific example if that helps.

Thanks,

John Casey
From: Piotr.Nestorow@telelogic.se (Piotr Nestorow - TeleLOGIC Malmoe AB)
Newsgroups: gnu.gdb.bug
Subject: Problem with `s' (step) in gdb-4.7
Date: 6 Nov 92 12:30:22 GMT
Article-I.D.: telelogi.199211061030.AA22030
Distribution: gnu
Organization: GNUs Not Usenet

Gdb-4.7 on SS2 (SunOS 4.1.1), configured with `Configure sparc'.

While debugging programs compiled with `gcc-2.2.2' we have problems with the
`s' (step) command in `gdb'. We cannot step into functions that are defined
in a module different from the module we stopped after a breakpoint.

The debugged program is linked with shared libraries that are compiled with
`gcc-2.2.2' and the `-g' flag. We don't try to step into library functions.

`s' into a static function is no problem.

Is it a known problem in `gdb-4.7'.

`Gdb-4.6' works when we try to do the same thing.

Piotr Nestorow
TeleLOGIC Nalmo AB, SWEDEN
E-mail: Piotr.Nestorow@telelogic.se
Newsgroups: gnu.gdb.bug
From: gilham@csl.sri.com (Fred Gilham)
Subject: gdb 4.7
Organization: Computer Science Lab, SRI International
Distribution: gnu
Date: Sat, 7 Nov 1992 05:32:42 GMT

I'm trying to make gdb 4.7 on a sun4 running sunos 4.1.  

The resulting executable dies in wrap_here() because wrap_buffer
doesn't get initialized.  wrap_buffer doesn't get initialized because
the init file munch creates doesn't have anything in it.  That happens
because when munch runs, nm doesn't find the files specified in the
munch command line.  nm says something about a.out not being found.

You only see the error in munch when you run it under sh with -v, for
example:

sh -v munch utils.o

-Fred Gilham    gilham@csl.sri.com

Newsgroups: gnu.gdb.bug
From: son@gordian.com (Son D. Nguyen)
Subject: Single step of branch instructions on mips
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 5 Nov 1992 04:38:44 GMT

Subject: Single step of branch instructions on mips


Hi,

On the Mips R3000's, a branch or jump instruction has a single
delay of one instruction.  How is the the delay instruction
executed when the branch/jump is executed in a single step?

For example:

	b	loop		# branch instruction
	move 	r5, r8		# delay instruction
loop:


Thanks,
son@gordian.com


Newsgroups: gnu.gdb.bug
From: karl@claude.cs.umb.edu (Karl Berry)
Subject: gdb 4.7 on Sun Unix 3.5 -- struct fpu
Reply-To: karl@cs.umb.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 11 Nov 1992 05:59:37 GMT

gdb 4.7 doesn't compile on a Sun 3 running 3.5 configured as sun3os3.

There were two small configuration problems: in the glob and readline
directorys, sysdep.h was linked to sysdep-norm.h instead of
sysdep-obsd.h.

After fixing that, all the libraries compiled.  But gdb/sun3-nat.c
didn't compile, because it used a type `struct fpu' which isn't declared
in Sun Unix 3.5's header files.  There seemed to be some similar types,
but nothing exactly analogous.

I couldn't understand what gdb needed in the type, so unfortunately I
can't give a patch, which, I realize probably means nothing can be
done, as I feel like I'm the only person left using 3.5 (a vast
improvement over 4.x, in my opinion, but that's a different article :-)).

karl
From: rr2b+@andrew.cmu.edu (Robert Andrew Ryan)
Newsgroups: gnu.gdb.bug
Subject: Fix for RS/6000 dynamic linking
Date: 12 Nov 92 07:35:34 GMT
Distribution: gnu
Organization: GNUs Not Usenet

Thu Nov 05 23:04:38 EST 1992 Rob Ryan (rr2b@andrew.cmu.edu)

    * xcoffexec.c: fixed a bug where if a object has no member, and
      the stat pointer passed to vmap_symtab was NULL, the wrong vmap
      entries would be modified.  Fixes behavior where attempting to
      load symbols for a module with no member would mess up already
      read in symbols.


*** xcoffexec.c.orig	Wed Oct  7 20:31:53 1992
--- xcoffexec.c	Thu Nov  5 23:00:56 1992
***************
*** 392,398 ****
  	} else if (vp->member[0]) {
  	  /* no match, and member present, not this one. */
  	  continue;
! 	} else {
  	  struct stat si;
  	  FILE *io;
  	  
--- 392,401 ----
  	} else if (vp->member[0]) {
  	  /* no match, and member present, not this one. */
  	  continue;
! 	} else if (vip) {
! 	     /* if we weren't given a stat structure
! 	      that doesn't mean any old bfd will match...
! 	      -Rob Ryan 11/5/92*/
  	  struct stat si;
  	  FILE *io;
  	  
***************
*** 408,417 ****
  	  if (fstat(fileno(io), &si) < 0)
  	    fatal("cannot fstat BFD for sym");
  	  
! 	  if (vip && (si.st_dev != vip->st_dev
  	      || si.st_ino != vip->st_ino))
  	    continue;
! 	}
  	
  	if (vp->tstart != old_start) {
  
--- 411,420 ----
  	  if (fstat(fileno(io), &si) < 0)
  	    fatal("cannot fstat BFD for sym");
  	  
! 	  if ((si.st_dev != vip->st_dev
  	      || si.st_ino != vip->st_ino))
  	    continue;
! 	} else continue;
  	
  	if (vp->tstart != old_start) {
From: leisner@wrc.xerox.COM ( Marty Leisner)
Newsgroups: gnu.gdb.bug
Subject: How do I see make breakpoints?
Date: 12 Nov 92 02:01:17 GMT
Article-I.D.: spectrum.1992Nov12.020117.15666
Reply-To: leisner@eso.mc.xerox.com
Distribution: gnu
Organization: Xerox

I'm using gdb 4.7...how do I see all my breakpoints in one command --
or even 1 breakpoint??  I looked at help breakpoints and didn't see anything
(or maybe I didn't know I was looking at it...)

--
marty
leisner.henr801c@xerox.com  leisner@eso.mc.xerox.com
Member of the League for Programming Freedom
Newsgroups: gnu.gdb.bug
From: ebubra@ebu.ericsson.SE (Bertil Askelid)
Subject: Memory leak detector with gdb?
Followup-To: gnu.gcc.help
Reply-To: ebubra@ebu.ericsson.se (Bertil Askelid)
Organization: Ericsson Business Communications, Anaheim, California
Distribution: gnu
Date: Sat, 7 Nov 1992 01:02:25 GMT

   A while ago an article was posted about a memory leak detector
   running with gdb 4.*. I missed it. Is there someone who happens to
   have a copy of it and would like to email it to me?

   Thanks!
-- 
			Bertil Askelid
			ebubra@ebu.ericsson.se

Newsgroups: gnu.gdb.bug
From: kbd@@thor.PRime.COM (Keith Davidson)
Subject: Bug in gdb-4.7
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 5 Nov 1992 13:37:40 GMT

gdb 4.7 fails on executables compiled/linked with the SUN ANSI-C compiler 
(acc).  I have tested it on SunOS 4.1.1/2/3 and with gdb versions 4.4-4.7.
It SEGVs as soon as you try to list any source lines (I don't think it is
properly loading the symbol table).  It works fine on programs compiled
with gcc and cc.

Thanks,

Keith Davidson
(513) 576-3914
uunet!itecht!kbd

Newsgroups: gnu.gdb.bug
From: matt@bacchus.ESa.oz.AU (Matthew Atterbury)
Subject: gdb 4.4 on NCR 3000
Organization: Expert Solutions Australia.
Distribution: gnu
Date: Wed, 11 Nov 1992 12:41:26 GMT

    Hi. A friend on mine (really :-) is having trouble using gdb 4.4
    on an NCR 3000 (SVR4 release 2 i.e. multi-processor version) on
    code compiled with the Metaware High C compiler version 2.3x.

    She has compiled gdb ok (after fixing one thing the compiler
    didn't like) and can gdb programs until they do a libc call:
    stepping over such a call stuffs the stack and symbol table such
    that it is impossible to continue (continuing over a libc call is
    better but still stuffs the stack). She has tried using both the
    dynamic libc and static libc but with the same result. Any help
    would be greatly appreciated.

    cheers ...
-- 
-------------------------------------------------------------------------------
Matt Atterbury [matt@bacchus.esa.oz.au]   Expert Solutions Australia, Melbourne
UUCP: ...!uunet!munnari!matt@bacchus.esa.oz.au            "klaatu barada nikto"
ARPA: ...!uunet!murtoa!bacchus.esa.oz.au!matt         "consider this a divorce"

Newsgroups: gnu.utils.bug
From: simon@lia.di.epfl.CH (Simon Leinen)
Subject: Re: gcc-2.3.1 breaks oleo-1.0
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sun, 8 Nov 1992 18:42:00 GMT

In article <368@eileen.mga.COM> root@mga.COM (Operator) writes:

   gcc -O -c -g  -DSTDC_HEADERS=1 -DHAVE_X11_X_H=1 -DHAVE_UALARM=1 -DHAVE_SETITIMER=1 -DHAVE_RENAME=1 -DHAVE_VPRINTF=1  io_utils.c
   as: "/usr/tmp/cca23933.s", line 111: error: location counter not on word boundary

This happens inside a sequence of asm() statements, so it's not really
GCC's fault---try the patch below.
-- 
Simon.

--- 1.1	1992/11/08 18:38:47
+++ io_utils.c	1992/11/05 11:15:26
@@ -64,6 +64,9 @@
 
 #ifndef ASM_INF
 #if defined(__GNUC__) && ! defined(mips)
+#if defined(sparc)
+__asm (".align 4");
+#endif
 __asm (".globl ___plinf");
 __asm ("___plinf: .double 0rinf");
 __asm (".globl ___neinf");

Newsgroups: gnu.utils.bug
From: gorokho1@husc8.harvard.edu (Zhenya Gorokhovsky)
Subject: flow control in screen 3.02.00b (FAU) 10/28/92
Organization: Physicists for Poetry
Distribution: gnu
Date: Wed, 11 Nov 1992 21:11:18 GMT

  It looks like flow control does not work as described in the man
pages. Screen interprets ^S and ^Q as XOFF and XON with flow contol
off (as set in my .screenrc and reported by C-a i). Scrolling through
possbile settings using C-a f to no avail.
This is pain in the neck because most of my applications are
configured for emacs-style commands.  My system is Ultrix 4.2A, the
shell is bash 1.12.1
zhenya gorokho1@husc.harvard.edu


Newsgroups: gnu.utils.bug
From: meyering@cs.utexas.edu (Jim Meyering)
Subject: regex-0.11 bug?
Organization: U of TX at Austin CS Dept
Distribution: gnu
Date: Fri, 6 Nov 1992 15:34:00 GMT

Summary: re_search hangs in infinite loop

Using regex.[ch] from the 0.11 distribution, the following program
doesn't terminate.  The example is based on one from the tests in
GNU m4.  I've tried this with {sun,sgi} and {gcc-2.3.1,cc} with -g.
The version of regex (rather old) that came with m4-1.0 showed
similar problems with gcc on an SGI.

--
Jim Meyering             | Member of the League for Programming Freedom
meyering@cs.utexas.edu   | Contact me or lpf@uunet.uu.net for more info.

----
#include <sys/types.h>
#include "regex.h"
#define REG_EXPR "\\w+"
#define STRING "a"

int
main ()
{
  struct re_pattern_buffer pat_buf;
  char *msg;

  pat_buf.translate = 0;
  pat_buf.fastmap = 0;
  pat_buf.buffer = 0;
  pat_buf.allocated = 0;

  msg = re_compile_pattern (REG_EXPR, strlen (REG_EXPR), &pat_buf);
  if (msg)
    abort ();

  re_search (&pat_buf, STRING, strlen (STRING), 0, strlen (STRING), 0);
  exit (0);
}
From: jason@jarthur.claremont.edu (Jason Merrill)
Newsgroups: gnu.utils.bug
Subject: rcs 5.6 -d test fails
Date: 6 Nov 92 07:08:08 GMT
Article-I.D.: muddcs.1992Nov6.070808.16481
Distribution: gnu
Organization: Harvey Mudd College, Claremont, CA 91711

I've built rcs 5.6 and run the test script, with the following output.  The
problem is that RCS 5 converts the date to GMT time, but the rcstest script
uses the output of date(1).  I believe that it is the script that is in
error?

-----cut here-----
~> cd /gnu/rcs-5.6/src
/gnu/rcs-5.6/src> set path=(. $path)
/gnu/rcs-5.6/src> rcstest
*** a.kv	Thu Nov  5 23:01:10 1992
--- a.c	Thu Nov  5 23:01:11 1992
***************
*** 1,10 ****
  $Author: w $
! $Date: 1992/11/05 23:01:09 $
! $Header: /gnu/rcs-5.6/src/RCS/a.c 2.1 1992/11/05 23:01:09 w s $
! $Id: a.c 2.1 1992/11/05 23:01:09 w s $
  $Locker:  $
  $Log: a.c $
!  * Revision 2.1  1992/11/05  23:01:09  w
   * m
   *
  $RCSfile: a.c $
--- 1,10 ----
  $Author: w $
! $Date: 1992/11/06 07:01:09 $
! $Header: /gnu/rcs-5.6/src/RCS/a.c 2.1 1992/11/06 07:01:09 w s $
! $Id: a.c 2.1 1992/11/06 07:01:09 w s $
  $Locker:  $
  $Log: a.c $
!  * Revision 2.1  1992/11/06  07:01:09  w
   * m
   *
  $RCSfile: a.c $
#keyword expansion failed
/gnu/rcs-5.6/src> 
-----cut here-----

--
Jason Merrill
jason@jarthur.claremont.edu
Newsgroups: gnu.utils.bug
From: nico@bredex.DE
Subject: REGEX: "re_might_match()" possible ? (NO BUG)
Organization: GNUs Not Usenet
Distribution: gnu
Date: Fri, 6 Nov 1992 15:48:16 GMT

Hi folks,
I know, this is not the right place to ask, but may be
one of you have a quick solution.

We need a function to see if input MIGHT match.
Which means, we would like to check if a string matches
NOT AFTER typing in the whole string, BUT MEANWHILE
the user is typing.

For example if the pattern is "[0-9][0-9].*B", we
would like to return YES if the user just typed in
"34tf", but NO if he typed in "a34".

I know, this is not the right place to ask, but maybe
one of you have a quick solution.
Anyway where is the right place for such questions ?

aTdHvAaNnKcSe

--------
Nico
                                 address: BREDEX GmbH
email:   nico@bredex.de                   Nicolai Josuttis
                                          Kastanienallee 2a 
phone:   +49 531 75480                    D-3300 Braunschweig
fax:     +49 531 796358                   Germany
--------

Newsgroups: gnu.utils.bug
From: leisner@eso.mc.xerox.COM ( Marty Leisner)
Subject: Problem with diff 2.0?
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 12 Nov 1992 02:45:58 GMT

I'm using the -I option in gnu diff (on sparcs 4.1.2) and not sure what I'm seeing makes sense...

I have a script I'm using:
diff -W 160   -I '.*\+.*' --ignore-all-space --ignore-case --ignore-blank-lines  --side-by-side $* 

I want to ignore lines with spaces, number of spaces, and lines with a + in them.
I get:
ax=3ae8  bx=0000  cx=0000  dx=0000  sp=ffff  bp=0000  si=0000  di=0000          ax=3ae8  bx=0000  cx=0000 dx=0000 sp=ffff bp=0000 si=0000 di=0000
cs=3ae8  ds=8000  ss=8000  es=8000  ip=00a8  o=0 d=0 i=1 s=0 z=0 a=0 p=0 c=0    cs=3ae8 ds=8000 ss=8000 es=8000 ip=00a8  o=0 d=0 i=1 s=0 z=0 a=0 p=0 c=0
test_inc_+89         mov     ss,ax                                            |

Which indicates the line beginning test_inc_ is being diffed...which I don't want it to be...

I ran this with egrep and it seemed to do what I wanted...


Marty    leisner.henr801c@xerox.com 
 	 leisner@eso.mc.xerox.com 
          Member of the League for Programming Freedom 
 The Feynman Problem Solving Algorithm:
 1) Write down the problem
 2) Think very hard
 3) Write down the answer     -- Murray Gell-mann

Newsgroups: gnu.utils.bug
From: bothner@cygnus.com
Subject: sed-1.12 bug: -n flag
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 10 Nov 1992 07:18:04 GMT

It seems to me that the -n flag is a trifle hyper-active:
If should not suppress the output from the 'p' and 'w'
flags of the 's[ubstitute]' command.

A patch is included below.  If you're unconvinced,
I can send a test case.

This bug prevents libg++ from configuring when using sed-1.12.

	--Per Bothner
Cygnus Support     bothner@cygnus.com


*** sed.c~	Wed Nov  4 20:34:47 1992
--- sed.c	Tue Nov 10 13:30:33 1992
***************
*** 1562,1573 ****
  	  tmp.text = t.text;
  	  tmp.length = t.length;
  	  tmp.alloc = t.alloc;
! 	  if (cur_cmd->x.cmd_regex.flags & S_WRITE_BIT
! 	      && !no_default_output)
  	    ck_fwrite (line.text, 1, line.length,
  		       cur_cmd->x.cmd_regex.wio_file);
! 	  if (cur_cmd->x.cmd_regex.flags & S_PRINT_BIT
! 	      && !no_default_output)
  	    ck_fwrite (line.text, 1, line.length, stdout);
  	  break;
  
--- 1562,1571 ----
  	  tmp.text = t.text;
  	  tmp.length = t.length;
  	  tmp.alloc = t.alloc;
! 	  if (cur_cmd->x.cmd_regex.flags & S_WRITE_BIT)
  	    ck_fwrite (line.text, 1, line.length,
  		       cur_cmd->x.cmd_regex.wio_file);
! 	  if (cur_cmd->x.cmd_regex.flags & S_PRINT_BIT)
  	    ck_fwrite (line.text, 1, line.length, stdout);
  	  break;
  

Newsgroups: gnu.utils.bug
From: hod@cucbs.chem.columbia.edu (Hod Greeley)
Subject: File stream leak in make 3.62
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 4 Nov 1992 18:12:54 GMT

Hi,
I came across a small problem using make 3.62 on a sun sparc II under
SunOS 4.1.1.  It's in glob_in_dir in glob.c.  When globbing files, the
directory streams aren't closed, and eventually opendir fails with an
errno indicating too many descriptors open for the process.  I can
send a short makefile that shows how the problem arose for me if you
want, but I think it's pretty straightforward.  Here's the patch I
made.  Hope this helps.

*** /reef/hod/src/make-3.62/glob/glob.c Sat Oct 19 16:39:23 1991
--- glob.c      Wed Nov  4 23:10:31 1992
***************
*** 477,482 ****
--- 477,483 ----
              names = new;
              ++nfound;
            }
+       closedir(stream);
      }

    if (nfound == 0 && (flags & GLOB_NOCHECK))


Hod Greeley
hod@cucbs.chem.columbia.edu

Newsgroups: gnu.utils.bug
From: hod@cucbs.chem.columbia.edu (Hod Greeley)
Subject: glob.c patch.
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 4 Nov 1992 18:31:34 GMT

Hi,
spoke a little too quickly.  The closedir should done within the else
statement following the opendir.  Here's a corrected patch.
*** /reef/hod/src/make-3.62/glob/glob.c	Sat Oct 19 16:39:23 1991
--- glob.c	Wed Nov  4 23:24:49 1992
***************
*** 456,482 ****
  	    return GLOB_ABEND;
  	}
        else
! 	while ((d = readdir(stream)) != NULL)
! 	  if (REAL_DIR_ENTRY(d) &&
! 	      fnmatch(pattern, d->d_name,
! 		      (!(flags & GLOB_PERIOD) ? FNM_PERIOD : 0) |
! 		      ((flags & GLOB_NOESCAPE) ? FNM_NOESCAPE : 0)) == 0)
! 	    {
! 	      struct globlink *new = (struct globlink *)
! 	      __alloca(sizeof(struct globlink));
! 	      size_t len = D_NAMLEN(d);
! 	      new->name = (char *) malloc(len +
! 					  ((flags & GLOB_MARK) ? 1 : 0) + 1);
! 	      if (new->name == NULL)
! 		goto memory_error;
! 	      memcpy((char *) new->name, d->d_name, len);
! 	      if (flags & GLOB_MARK)
! 		new->name[len++] = '/';
! 	      new->name[len] = '\0';
! 	      new->next = names;
! 	      names = new;
! 	      ++nfound;
! 	    }
      }
  
    if (nfound == 0 && (flags & GLOB_NOCHECK))
--- 456,485 ----
  	    return GLOB_ABEND;
  	}
        else
! 	{
! 	  while ((d = readdir(stream)) != NULL)
! 	    if (REAL_DIR_ENTRY(d) &&
! 		fnmatch(pattern, d->d_name,
! 			(!(flags & GLOB_PERIOD) ? FNM_PERIOD : 0) |
! 			((flags & GLOB_NOESCAPE) ? FNM_NOESCAPE : 0)) == 0)
! 	      {
! 		struct globlink *new = (struct globlink *)
! 		  __alloca(sizeof(struct globlink));
! 		size_t len = D_NAMLEN(d);
! 		new->name = (char *) malloc(len +
! 					    ((flags & GLOB_MARK) ? 1 : 0) + 1);
! 		if (new->name == NULL)
! 		  goto memory_error;
! 		memcpy((char *) new->name, d->d_name, len);
! 		if (flags & GLOB_MARK)
! 		  new->name[len++] = '/';
! 		new->name[len] = '\0';
! 		new->next = names;
! 		names = new;
! 		++nfound;
! 	      }
! 	  closedir(stream);
! 	}
      }
  
    if (nfound == 0 && (flags & GLOB_NOCHECK))

Hod Greeley
hod@cucbs.chem.columbia.edu

Newsgroups: gnu.utils.bug