]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r329682:
authorrpokala <rpokala@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 28 Feb 2018 00:30:03 +0000 (00:30 +0000)
committerrpokala <rpokala@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 28 Feb 2018 00:30:03 +0000 (00:30 +0000)
commit634a06be7cd886c88371504d077034af79d0cfb6
tree313584cbdc6943aff50bade0edfda9e3e5c6ba4e
parenta779c891ea0b9787d2a9506fa27f0301047acf0c
MFC r329682:

mountd: Return proper errno values in a few error paths

When attempting to mount a non-directory which exists, return ENOTDIR
instead of ENOENT. If stat() or statfs() failed, don't pass part of the
invalid (struct statfs) to ex_search(). In that same case, preserve the
value of "bad" rather than overwriting with EACCES.

git-svn-id: svn://svn.freebsd.org/base/stable/10@330093 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/mountd/mountd.c