Ignore:
Timestamp:
08/13/07 08:55:52 (5 years ago)
Author:
ludovic.rousseau
Message:

arguments starts at argv[1] and not argv[0]
Avoids a warning message: "argument pkcs11_inspect is not supported
by this module"

File:
1 edited

Legend:

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

    r270 r301  
    200200        int res; 
    201201        /* try to find a configuration file entry */ 
    202         for (i = 0; i < argc; i++) { 
     202        for (i = 1; i < argc; i++) { 
    203203            if (strstr(argv[i],"config_file=") ) { 
    204204                configuration.config_file=1+strchr(argv[i],'='); 
     
    212212        /* finally parse provided arguments */ 
    213213        /* dont skip argv[0] */ 
    214         for (i = 0; i < argc; i++) { 
     214        for (i = 1; i < argc; i++) { 
    215215           if (strcmp("nullok", argv[i]) == 0) { 
    216216                configuration.nullok = 1; 
Note: See TracChangeset for help on using the changeset viewer.