diff --git a/fs/hmdfs/inode_local.c b/fs/hmdfs/inode_local.c index 4ec03bed95ccfac89ee97698af6b0d091e11d4a8..37ddcfc4ee2f6b586326c0c011228b419b1f9295 100644 --- a/fs/hmdfs/inode_local.c +++ b/fs/hmdfs/inode_local.c @@ -761,7 +761,7 @@ static bool symname_is_allowed(const char *symname) buf[0] = '/'; strncpy(buf + 1, symname, symname_len); strcat(buf, "/"); - p = strstr(symname, "/../"); + p = strstr(buf, "/../"); if (p) { kfree(buf); return false;