Fix basic authentication problem, fixes #13

This assigns username and password command-line values to the correct internal variables.
This commit is contained in:
Jerome Charaoui 2018-08-22 00:47:59 -04:00 committed by Fufu Fang
parent 6e71abe8cc
commit ed6e554447
1 changed files with 2 additions and 2 deletions

4
main.c
View File

@ -157,10 +157,10 @@ parse_arg_list(int argc, char **argv, char ***fuse_argv, int *fuse_argc)
case 's':
add_arg(fuse_argv, fuse_argc, "-s");
break;
case 'p':
case 'u':
NETWORK_CONFIG.username = strndup(optarg, ARG_LEN_MAX);
break;
case 'u':
case 'p':
NETWORK_CONFIG.password = strndup(optarg, ARG_LEN_MAX);
break;
case 'P':