]> git.decadent.org.uk Git - nfs-utils.git/commit
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)
commite0819debc9d1d322e06ca4047a125a4fd8176d13
tree7b7650f9dd5dca9d66485b3555006204ff7e9faf
parent40af0d2957a168bee50337695379313f3f88c635
mountd: minor v4root_set cleanup, check strdup return

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>
utils/mountd/v4root.c