]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Being able to access a path do not necessarily mean we have access
authorXin LI <delphij@FreeBSD.org>
Thu, 25 Sep 2014 22:22:43 +0000 (22:22 +0000)
committerXin LI <delphij@FreeBSD.org>
Thu, 25 Sep 2014 22:22:43 +0000 (22:22 +0000)
commitbe930504becc794c808b529bd65fa09d2d85f846
tree513d4313762b87ec5d3eab83da3fb1c440f783ec
parentdde47d8bbc2aa9a5ca8216e6dc5dc526a0a1b823
Being able to access a path do not necessarily mean we have access
to a directory. So instead of doing this, we just call mkdir(2)
directly and test if the returned value is 0 or errno is EISDIR.

Reported by: Coverity
CID: 1238925
MFC after: 1 week
contrib/hyperv/tools/hv_kvp_daemon.c