Module Name: src Committed By: maxv Date: Mon Oct 20 08:20:08 UTC 2014
Modified Files: src/sys/kern: kern_prot.c Log Message: The userland namelen is size_t, but the kernel holds it in an int. The sizeof(login) test implicitly interprets 'namelen' as unsigned, which means that negative values get kicked anyway. Still this is fragile, so: int -> size_t To generate a diff of this commit: cvs rdiff -u -r1.117 -r1.118 src/sys/kern/kern_prot.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.