Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153834
b: refs/heads/master
c: 0b75b35
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Linus Torvalds committed Jun 23, 2009
1 parent ebefe70 commit 56c4859
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c02d7adf8c5429727a98bad1d039bccad4c61c50
refs/heads/master: 0b75b35c7cad33e7613f5adf28fa10fe8b09b1c3
5 changes: 5 additions & 0 deletions trunk/fs/nfs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ char *nfs_path(const char *base,
dentry = dentry->d_parent;
}
spin_unlock(&dcache_lock);
if (*end != '/') {
if (--buflen < 0)
goto Elong;
*--end = '/';
}
namelen = strlen(base);
/* Strip off excess slashes in base string */
while (namelen > 0 && base[namelen - 1] == '/')
Expand Down

0 comments on commit 56c4859

Please sign in to comment.