]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mountd: minor v4root_set cleanup, check strdup return
authorJ. Bruce Fields <bfields@citi.umich.edu>
Sat, 9 Jan 2010 17:44:57 +0000 (10:44 -0700)
committerSteve Dickson <steved@redhat.com>
Wed, 13 Jan 2010 20:39:14 +0000 (15:39 -0500)
Move more of v4root_set into a helper function.

Also, check the return value from strdup.  (We don't really handle the
error well yet--we'll end up giving negative replies to export upcalls
when we should be giving the kernel exports, resulting in spurious
-ENOENTs or -ESTALE's--but that's better than crashing with a NULL
dereference.)

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>

No differences found