libvpd : Fix realpath issue
libvpd : Fix realpath issue

Commit 0ff59df7 fixed get absolute path for a given relative path. We
have to pass current dir and relative path to realpath(). But we forgot
to remove "basename" from current dir. Hence realpath() was returning
NULL instead of giving absolute path.

This patch fixes above described issue.

Signed-off-by: Ankit Kumar <7d7f3b0de32b6cc2e9608ebf7986c26b5954d288@linux.vnet.ibm.com>
[Updated patch description - Vasant]
Signed-off-by: Vasant Hegde <a6d753843573f7bfed5075c1e875b0be8007a0ab@linux.vnet.ibm.com>

kamalesh-babulal/libvpd,kamalesh-babulal/libvpd,kamalesh-babulal/libvpd