Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26700
b: refs/heads/master
c: 3b7c810
h: refs/heads/master
v: v3
  • Loading branch information
Olaf Kirch authored and Linus Torvalds committed May 15, 2006
1 parent 1296c40 commit 62f0b19
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: a7b862f663d81858531dfccc0537bc9d8a2a4121
refs/heads/master: 3b7c8108273bed41a2fc04533cc9f2026ff38c8e
5 changes: 5 additions & 0 deletions trunk/fs/smbfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,11 @@ smb_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
if (dentry->d_name.len > SMB_MAXNAMELEN)
goto out;

/* Do not allow lookup of names with backslashes in */
error = -EINVAL;
if (memchr(dentry->d_name.name, '\\', dentry->d_name.len))
goto out;

lock_kernel();
error = smb_proc_getattr(dentry, &finfo);
#ifdef SMBFS_PARANOIA
Expand Down

0 comments on commit 62f0b19

Please sign in to comment.