diff options
Diffstat (limited to 'api/src')
-rw-r--r-- | api/src/glfs-resolve.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/api/src/glfs-resolve.c b/api/src/glfs-resolve.c index 8b654e4dbff..17cf19d0fdc 100644 --- a/api/src/glfs-resolve.c +++ b/api/src/glfs-resolve.c @@ -60,7 +60,10 @@ glfs_loc_touchup (loc_t *loc) int ret = -1; char *bn = NULL; - ret = inode_path (loc->parent, loc->name, &path); + if (loc->parent) + ret = inode_path (loc->parent, loc->name, &path); + else + ret = inode_path (loc->inode, 0, &path); loc->path = path; |