Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2007 10:22:45 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 122336 for review
Message-ID:  <200706261022.l5QAMj4K024904@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122336

Change 122336 by rdivacky@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] == '/');	



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706261022.l5QAMj4K024904>