From b40b4bc5fb06e957ab800a08a0b4d00b6e667ba4 Mon Sep 17 00:00:00 2001 From: Ernestas Kulik Date: Tue, 24 Jan 2017 19:40:49 +0200 Subject: [PATCH] staging: lustre: libcfs: use octal permissions Using octal permissions instead of symbolic ones is preferred. Signed-off-by: Ernestas Kulik Signed-off-by: Greg Kroah-Hartman --- drivers/staging/lustre/lnet/libcfs/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lnet/libcfs/module.c b/drivers/staging/lustre/lnet/libcfs/module.c index 161e042..c388550 100644 --- a/drivers/staging/lustre/lnet/libcfs/module.c +++ b/drivers/staging/lustre/lnet/libcfs/module.c @@ -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; -- 2.7.4