diff options
author | Sheetal Pamecha <spamecha@redhat.com> | 2019-08-19 15:27:57 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@gmail.com> | 2019-09-12 08:02:34 +0000 |
commit | 61d438e73857776a1f96a7334f56b132275a587b (patch) | |
tree | 17f3fa5bb186097fd67dc21c2c1ba2e23e25dbab /xlators/protocol/client | |
parent | da76f7bbef4d311775a5f75c96a54785170a1727 (diff) |
libgfapi: return correct errno on invalid volume name
glfs_init when called with volume name prefixed by '/'
sets errno to 0. Setting errno to EINVAL to resolve the issue.
Also volname is a parameter to glfs_new.
Thus, validating volname in glfs_new itself and
returning EINVAL from that function
fixes: bz#1507896
Change-Id: I0d4d2423e26cc07644d50ec8cce788ecc639203d
Signed-off-by: Sheetal Pamecha <spamecha@redhat.com>
Diffstat (limited to 'xlators/protocol/client')
0 files changed, 0 insertions, 0 deletions