Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Aug 1999 21:20:28 -0400 (EDT)
From:      "Brian F. Feldman" <green@FreeBSD.org>
To:        hackers@FreeBSD.org
Subject:   Re: more crashes and fixes (linux/svr4/ibcs2)
Message-ID:  <Pine.BSF.4.10.9908052119410.86114-100000@janus.syracuse.net>
In-Reply-To: <Pine.BSF.4.10.9908051928210.84441-100000@janus.syracuse.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 5 Aug 1999, Brian F. Feldman wrote:

Correction:
> 
> --- src/sys/i386/linux/linux_util.h.orig	Thu Aug  5 18:32:02 1999
> +++ src/sys/i386/linux/linux_util.h	Thu Aug  5 19:03:27 1999
> @@ -83,10 +83,17 @@
>  int linux_emul_find __P((struct proc *, caddr_t *, const char *, char *,
>  			char **, int));
>  
> -#define CHECKALTEXIST(p, sgp, path) \
> -    linux_emul_find(p, sgp, linux_emul_path, path, &(path), 0)
> +#define CHECKALT(p, sgp, path, i) 					\
> +	do {								\
> +		int _error;						\
> +									\
> +		_error = linux_emul_find(p, sgp, linux_emul_path, path,	\
> +		    &path, i);						\
> +		if (_error)						\

This should only be
		if (_error == EFAULT)

> +			return (_error);				\
> +	} while (0)
>  
> -#define CHECKALTCREAT(p, sgp, path) \
> -    linux_emul_find(p, sgp, linux_emul_path, path, &(path), 1)
> +#define CHECKALTEXIST(p, sgp, path) CHECKALT(p, sgp, path, 0)
> +#define CHECKALTCREAT(p, sgp, path) CHECKALT(p, sgp, path, 1)
>  
>  #endif /* !_LINUX_UTIL_H_ */
> 

 Brian Fundakowski Feldman      _ __ ___ ____  ___ ___ ___  
 green@FreeBSD.org                   _ __ ___ | _ ) __|   \ 
     FreeBSD: The Power to Serve!        _ __ | _ \._ \ |) |
       http://www.FreeBSD.org/              _ |___/___/___/ 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9908052119410.86114-100000>