|
@@ -65,6 +65,11 @@ char *nfs_path(const char *base,
|
|
dentry = dentry->d_parent;
|
|
dentry = dentry->d_parent;
|
|
}
|
|
}
|
|
spin_unlock(&dcache_lock);
|
|
spin_unlock(&dcache_lock);
|
|
|
|
+ if (*end != '/') {
|
|
|
|
+ if (--buflen < 0)
|
|
|
|
+ goto Elong;
|
|
|
|
+ *--end = '/';
|
|
|
|
+ }
|
|
namelen = strlen(base);
|
|
namelen = strlen(base);
|
|
/* Strip off excess slashes in base string */
|
|
/* Strip off excess slashes in base string */
|
|
while (namelen > 0 && base[namelen - 1] == '/')
|
|
while (namelen > 0 && base[namelen - 1] == '/')
|