diff options
Diffstat (limited to 'xlators/nfs/server/src/mount3.c')
-rw-r--r-- | xlators/nfs/server/src/mount3.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/mount3.c b/xlators/nfs/server/src/mount3.c index c3792b314..d0b46147c 100644 --- a/xlators/nfs/server/src/mount3.c +++ b/xlators/nfs/server/src/mount3.c @@ -517,7 +517,10 @@ __mnt3svc_umount (struct mount3_state *ms, char *dirpath, char *hostname) return 0; list_for_each_entry (me, &ms->mountlist, mlist) { - exname = dirpath+1; + if (dirpath[0] == '/') + exname = dirpath+1; + else + exname = dirpath; if ((strcmp (me->exname, exname) == 0) && (strcmp (me->hostname, hostname) == 0)) break; |