Thanks, but in this two places old errno value should be saved across
free() because free() may damage it:

On Fri, May 11, 2012 at 11:29:08AM +0000, Konstantin Belousov wrote:
...
> +                     if (lstat(resolved, &sb) != 0) {
> +                             if (m)
> +                                     free(resolved);
> +
                                return (NULL);
...
> +                             errno = ENOTDIR;
>                       if (m)
>                               free(resolved);
>                       return (NULL);


-- 
http://ache.vniz.net/
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to