staging: lustre: llite: Replace the symbolic file permission mode with the numeric one
authorRoman Storozhenko <romeusmeister@gmail.com>
Tue, 13 Jun 2017 10:04:36 +0000 (13:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 10:37:22 +0000 (12:37 +0200)
Replaces S_IRWXUGO with 0777. The reason is that symbolic permissions
considered harmful:
https://lwn.net/Articles/696229/

Signed-off-by: Roman Storozhenko <romeusmeister@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/dir.c

index 13b3592..de5b4bf 100644 (file)
@@ -1141,7 +1141,7 @@ out_free:
                }
 
 #if OBD_OCD_VERSION(2, 9, 50, 0) > LUSTRE_VERSION_CODE
-               mode = data->ioc_type != 0 ? data->ioc_type : S_IRWXUGO;
+               mode = data->ioc_type != 0 ? data->ioc_type : 0777;
 #else
                mode = data->ioc_type;
 #endif