[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fwrite problems and bringing down MiNT
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.
Tschuess
...Frank
--
ATARI FALCON 040
--------------------------------------
Internet: fnaumann@cs.uni-magdeburg.de
Mausnet: Frank Naumann @ L2