mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
staging: lustre: llite: Replace the symbolic file permission mode with the numeric one
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>
This commit is contained in:
parent
1802d96eb6
commit
1dbc269e95
|
|
@ -1141,7 +1141,7 @@ static long ll_dir_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
|||
}
|
||||
|
||||
#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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user