Skip to content
Commit 84baf74b authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

ROMFS: romfs_lookup() shouldn't be doing a partial name comparison



romfs_lookup() should be using a routine akin to strcmp() on the backing store,
rather than one akin to strncmp().  If it uses the latter, it's liable to match
/bin/shutdown when looking up /bin/sh.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Tested-by: default avatarMichal Simek <monstr@monstr.eu>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a5422a51
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment