diff -up pam_pkcs11-0.6.2/src/pam_pkcs11/pam_config.c.fix-arg-parsing pam_pkcs11-0.6.2/src/pam_pkcs11/pam_config.c
|
old
|
new
|
struct configuration_st *pk_configure( i |
| 229 | 229 | int i; |
| 230 | 230 | int res; |
| 231 | 231 | /* try to find a configuration file entry */ |
| 232 | | for (i = 1; i < argc; i++) { |
| | 232 | for (i = 0; i < argc; i++) { |
| 233 | 233 | if (strstr(argv[i],"config_file=") ) { |
| 234 | 234 | configuration.config_file=1+strchr(argv[i],'='); |
| 235 | 235 | break; |
| … |
… |
struct configuration_st *pk_configure( i |
| 241 | 241 | /* display_config(); */ |
| 242 | 242 | /* finally parse provided arguments */ |
| 243 | 243 | /* dont skip argv[0] */ |
| 244 | | for (i = 1; i < argc; i++) { |
| | 244 | for (i = 0; i < argc; i++) { |
| 245 | 245 | if (strcmp("nullok", argv[i]) == 0) { |
| 246 | 246 | configuration.nullok = 1; |
| 247 | 247 | continue; |
diff -up pam_pkcs11-0.6.2/src/tools/card_eventmgr.c.fix-arg-parsing pam_pkcs11-0.6.2/src/tools/card_eventmgr.c
diff -up pam_pkcs11-0.6.2/src/tools/pkcs11_eventmgr.c.fix-arg-parsing pam_pkcs11-0.6.2/src/tools/pkcs11_eventmgr.c
diff -up pam_pkcs11-0.6.2/src/tools/pkcs11_inspect.c.fix-arg-parsing pam_pkcs11-0.6.2/src/tools/pkcs11_inspect.c
|
old
|
new
|
int main(int argc, const char **argv) { |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /* call configure routines */ |
| 50 | | configuration = pk_configure(argc,argv); |
| | 50 | configuration = pk_configure(argc - 1, argv + 1); |
| 51 | 51 | if (!configuration ) { |
| 52 | 52 | ERR("Error setting configuration parameters"); |
| 53 | 53 | return 1; |
diff -up pam_pkcs11-0.6.2/src/tools/pkcs11_listcerts.c.fix-arg-parsing pam_pkcs11-0.6.2/src/tools/pkcs11_listcerts.c
|
old
|
new
|
int main(int argc, const char **argv) { |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /* call configure routines */ |
| 50 | | configuration = pk_configure(argc,argv); |
| | 50 | configuration = pk_configure(argc - 1, argv + 1); |
| 51 | 51 | if (!configuration ) { |
| 52 | 52 | DBG("Error setting configuration parameters"); |
| 53 | 53 | return 1; |
diff -up pam_pkcs11-0.6.2/src/tools/pkcs11_setup.c.fix-arg-parsing pam_pkcs11-0.6.2/src/tools/pkcs11_setup.c
diff -up pam_pkcs11-0.6.2/src/tools/pklogin_finder.c.fix-arg-parsing pam_pkcs11-0.6.2/src/tools/pklogin_finder.c
|
old
|
new
|
int main(int argc, const char **argv) { |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /* call configure routines */ |
| 52 | | configuration = pk_configure(argc,argv); |
| | 52 | configuration = pk_configure(argc - 1, argv + 1); |
| 53 | 53 | if (!configuration ) { |
| 54 | 54 | DBG("Error setting configuration parameters"); |
| 55 | 55 | return 1; |