PERFORCE change 188975 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Sun Feb 20 16:57:15 UTC 2011
http://p4web.freebsd.org/@@188975?ac=10
Change 188975 by trasz at 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);
More information about the p4-projects
mailing list