From 34edf264dc678d3df086bb76ff0d40fb28d08b60 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 1 Feb 2014 08:03:12 -0800 Subject: [PATCH] Empty paths are no longer an error. Translate it to '.' instead. --- lib/libnfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)); -- 2.34.1