Skip to content
Commit bfa890a3 authored by Sachin Prabhu's avatar Sachin Prabhu Committed by Steve French
Browse files

Fix number parsing in cifs_parse_mount_options



The function kstrtoul() used to parse number strings in the mount
option parser is set to expect a base 10 number . This treats the octal
numbers passed for mount options such as file_mode as base10 numbers
leading to incorrect behavior.

Change the 'base' argument passed to kstrtoul from 10 to 0 to
allow it to auto-detect the base of the number passed.

Signed-off-by: default avatarSachin Prabhu <sprabhu@redhat.com>
Acked-by: default avatarJeff Layton <jlayton@samba.org>
Reported-by: default avatarChris Clayton <chris2553@googlemail.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 4fe9e963
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment