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

Re: fwrite problems and bringing down MiNT



fnaumann@prinz-atm.cs.Uni-Magdeburg.DE%INTERNET wrote:
> 
> Hi Draco!
> 
> > He actually mentioned the Minix FS. I think it would be easier to fix that
> > at the DOS level, something like this:
> >
> > --- dosfile.c.orig      Tue Jun  9 13:28:56 1998
> > +++ dosfile.c   Tue Jun  9 13:32:20 1998
> > @@ -674,6 +674,11 @@
> >  #endif
> >             proc = curproc;
> >
> > +       if (count <= 0) {
> > +               DEBUG(("Fwrite: invalid count: %d", count));
> > +               return ERANGE;
> > +       }
> > +
> >         if (fh < MIN_HANDLE || fh >= MAX_OPEN || 0 == (f =  proc->handle[fh])) {
> >                 DEBUG(("Fwrite: bad handle: %d", fh));
> >                 return EIHNDL;
> 
> I disagree. Sometimes it can be better for *some* xfs to allow negative
> numbers.

Obviously you can't claim that without giving us an example :-)

Regards, jr