cifs no guest if password specified

This commit is contained in:
IgnorantGuru 2012-07-21 07:24:39 -06:00
parent f368bd21b8
commit c1c10e3a7b

View File

@ -3746,7 +3746,7 @@ _get_type:
if ( type == MOUNT_NET )
{
if ( ( !strcmp( fstype, "smbfs" ) || !strcmp( fstype, "cifs" ) )
&& !netmount->user
&& !netmount->user && !netmount->pass
&& validate_in_list( "allowed_options", fstype, "guest" ) )
{
// try cifs as guest first