Empty paths are no longer an error. Translate it to '.' instead.
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 1 Feb 2014 16:03:12 +0000 (08:03 -0800)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 1 Feb 2014 16:03:12 +0000 (08:03 -0800)
lib/libnfs.c

index d4ad029574a497b9dcc04fe80247ca01bce4b6cb..303615a247dbbbb67de010377fb4adee4803e6a0 100644 (file)
@@ -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));