X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fext4%2Fnamei.c;h=dc40e75cba8857e6068739646b4932bb315688fd;hb=92f1c008ae79e32b83c0607d184b194f302bb3ee;hp=92203b8a099f076ebbc0d794b3356289096c663f;hpb=6303710d7aa62bfb154cd13ab5ab12cfa8baaf91;p=karo-tx-linux.git diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 92203b8a099f..dc40e75cba88 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -872,7 +872,7 @@ static struct buffer_head * ext4_find_entry (struct inode *dir, if (namelen > EXT4_NAME_LEN) return NULL; if ((namelen <= 2) && (name[0] == '.') && - (name[1] == '.' || name[1] == '0')) { + (name[1] == '.' || name[1] == '\0')) { /* * "." or ".." will only be in the first block * NFS may look up ".."; "." should be handled by the VFS