]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r220519
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 24 Apr 2011 21:27:29 +0000 (21:27 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 24 Apr 2011 21:27:29 +0000 (21:27 +0000)
commite513a41c25ac1a08eccd6d95f8f9f1dd2d5e22d4
tree1a4f238ed039d329b670bd075a72e940f0d2450b
parent67b39d278ee9178909377eeb02d0adc68ba1963d
MFC: r220519
Fix a bug in the userland rpc library, where it would use a
negative return value from write to update its position in
a buffer. The patch, courtesy of Andrey Simonenko, also simplifies
a conditional by removing the "i != cnt" clause, since it is
always true at this point in the code. The bug caused problems
for mountd, when it generated a large reply to an exports RPC
request.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220999 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/rpc/svc_vc.c