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

Re: MiNT library PL46 patches



lux@heidelbg.ibm.com (Wolfgang Lux) writes:

|> diff -u -xChangeLog -xMakefile /usr/src/libsrc/open.c ./open.c
|> --- /usr/src/libsrc/open.c	Tue Mar 14 21:04:02 1995
|> +++ ./open.c	Thu Apr 13 23:13:08 1995
|> @@ -118,7 +118,7 @@
|>  		}
|>  		if ((iomode & ~modemask & O_TRUNC) && (rv >= 0)) {
|>  			/* Give up if the mode flags conflict */
|> -			if (iomode & O_RDONLY) {
|> +			if (iomode & O_ACCMODE == O_RDONLY) {
|>  				(void)Fclose(rv);
|>  				errno = EACCES;
|>  				return __SMALLEST_VALID_HANDLE - 1;

Priority error, it should be

			if ((iomode & O_ACCMODE) == O_RDONLY) {