Date: Sun, 20 Feb 2011 16:57:14 GMT From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 188975 for review Message-ID: <201102201657.p1KGvEj8036490@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@188975?ac=10 Change 188975 by trasz@trasz_victim on 2011/02/20 16:56:30 Fix copyinstr(9) error handling. Affected files ... .. //depot/projects/soc2009/trasz_limits/sys/kern/kern_loginclass.c#29 edit Differences ... ==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_loginclass.c#29 (text+ko) ==== @@ -195,8 +195,8 @@ if (error != 0) return (error); error = copyinstr(uap->namebuf, lcname, sizeof(lcname), NULL); - if (error == ENAMETOOLONG) - return (EINVAL); + if (error != 0) + return (error); newcred = crget(); newlc = loginclass_find(lcname);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102201657.p1KGvEj8036490>