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      _ __ ___ ____  ___ ___ ___  
 gr...@freebsd.org                   _ __ ___ | _ ) __|   \ 
     FreeBSD: The Power to Serve!        _ __ | _ \._ \ |) |
       http://www.FreeBSD.org/              _ |___/___/___/ 



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

Reply via email to