Sachin Prabhu a9a315d414 cifs: Fix check for regular file in couldbe_mf_symlink()
MF Symlinks are regular files containing content in a specified format.

The function couldbe_mf_symlink() checks the mode for a set S_IFREG bit
as a test to confirm that it is a regular file. This bit is also set for
other filetypes and simply checking for this bit being set may return
false positives.

We ensure that we are actually checking for a regular file by using the
S_ISREG macro to test instead.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reported-by: Neil Brown <neilb@suse.de>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <smfrench@gmail.com>
2014-01-31 09:06:43 -06:00
..
2014-01-20 09:52:13 -06:00
2013-10-24 23:34:49 -04:00
2014-01-20 09:52:13 -06:00
2014-01-20 09:52:13 -06:00
2014-01-20 09:52:13 -06:00
2014-01-20 09:52:13 -06:00
2013-11-08 05:57:46 +09:00
2014-01-20 09:52:13 -06:00
2013-06-26 23:45:05 -05:00
2007-06-05 18:30:44 +00:00
2014-01-20 09:52:13 -06:00
2013-06-26 23:45:05 -05:00
2013-11-11 16:31:03 -06:00
2012-07-24 10:25:13 -05:00
2013-09-08 14:54:24 -05:00