Ignore:
Timestamp:
08/12/10 21:45:03 (22 months ago)
Author:
ludovic.rousseau
Message:

Revert changeset 301 parsing arguments in pam_config.c but skip the
first argument in command line tools.

Thanks to halfline for the patch. Closes ticket #29

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/pam_pkcs11/pam_config.c

    r414 r441  
    237237        int res; 
    238238        /* try to find a configuration file entry */ 
    239         for (i = 1; i < argc; i++) { 
     239        for (i = 0; i < argc; i++) { 
    240240            if (strstr(argv[i],"config_file=") ) { 
    241241                configuration.config_file=1+strchr(argv[i],'='); 
     
    251251        /* finally parse provided arguments */ 
    252252        /* dont skip argv[0] */ 
    253         for (i = 1; i < argc; i++) { 
     253        for (i = 0; i < argc; i++) { 
    254254           if (strcmp("nullok", argv[i]) == 0) { 
    255255                configuration.nullok = 1; 
Note: See TracChangeset for help on using the changeset viewer.