PERFORCE change 122336 for review
Roman Divacky
rdivacky at FreeBSD.org
Tue Jun 26 10:22:46 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=122336
Change 122336 by rdivacky at rdivacky_witten on 2007/06/26 10:22:21
Use copyin instead of copyinstr as the latter always returns ENAMETOOLONG in
this conditions ;(
Brainfart by: rdivacky
Affected files ...
.. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#30 edit
Differences ...
==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#30 (text+ko) ====
@@ -1008,7 +1008,7 @@
if (pathseg == UIO_SYSSPACE) {
return (path[0] == '/');
} else {
- error = copyinstr(path, buf, 1, NULL);
+ error = copyin(path, buf, 1);
if (error)
return 0; /* we want to fail */
return (buf[0] == '/');
More information about the p4-projects
mailing list