提交 b40b4bc5 编写于 作者: E Ernestas Kulik 提交者: Greg Kroah-Hartman

staging: lustre: libcfs: use octal permissions

Using octal permissions instead of symbolic ones is preferred.
Signed-off-by: NErnestas Kulik <ernestas.kulik@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 74e3bb75
......@@ -488,10 +488,10 @@ static const struct file_operations lnet_debugfs_file_operations_wo = {
static const struct file_operations *lnet_debugfs_fops_select(umode_t mode)
{
if (!(mode & S_IWUGO))
if (!(mode & 0222))
return &lnet_debugfs_file_operations_ro;
if (!(mode & S_IRUGO))
if (!(mode & 0444))
return &lnet_debugfs_file_operations_wo;
return &lnet_debugfs_file_operations_rw;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册