diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1995-11-14 08:00:00 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1995-11-14 08:00:00 +0000 |
commit | e7c2a72e2680827d6a733931273a93461c0d8d1b (patch) | |
tree | c9abeda78ef7504062bb2e816bcf3e3c9d680112 /fs/minix/namei.c | |
parent | ec6044459060a8c9ce7f64405c465d141898548c (diff) |
Import of Linux/MIPS 1.3.0
Diffstat (limited to 'fs/minix/namei.c')
-rw-r--r-- | fs/minix/namei.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/minix/namei.c b/fs/minix/namei.c index dd60e4602..995008c92 100644 --- a/fs/minix/namei.c +++ b/fs/minix/namei.c @@ -4,6 +4,10 @@ * Copyright (C) 1991, 1992 Linus Torvalds */ +#ifdef MODULE +#include <linux/module.h> +#endif + #include <linux/sched.h> #include <linux/minix_fs.h> #include <linux/kernel.h> @@ -23,11 +27,11 @@ static inline int namecompare(int len, int maxlen, const char * name, const char * buffer) { - if (len >= maxlen) + if (len > maxlen) return 0; if (len < maxlen && buffer[len]) return 0; - return !memcmp(name,buffer,len); + return !memcmp(name, buffer, len); } /* @@ -189,6 +193,7 @@ static int minix_add_entry(struct inode * dir, } } else { dir->i_mtime = dir->i_ctime = CURRENT_TIME; + dir->i_dirt = 1; for (i = 0; i < info->s_namelen ; i++) de->name[i] = (i < namelen) ? name[i] : 0; dir->i_version = ++event; |