From: Ronnie Sahlberg Date: Sat, 1 Feb 2014 16:03:12 +0000 (-0800) Subject: Empty paths are no longer an error. Translate it to '.' instead. X-Git-Tag: upstream/1.9.6^2~122 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=34edf264dc678d3df086bb76ff0d40fb28d08b60;p=deb_libnfs.git Empty paths are no longer an error. Translate it to '.' instead. --- diff --git a/lib/libnfs.c b/lib/libnfs.c index d4ad029..303615a 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -1099,8 +1099,7 @@ static int nfs_lookuppath_async(struct nfs_context *nfs, const char *path, nfs_c struct nfs_cb_data *data; if (path[0] == '\0') { - rpc_set_error(nfs->rpc, "Path is empty"); - return -1; + path = "."; } data = malloc(sizeof(struct nfs_cb_data));