Changeset devel,412

Show
Ignore:
Timestamp:
2008-07-31T22:27:13Z (2 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
branch-nick:
devel
revision id:
wilmer@gaast.net-20080731222713-8crmhnbbz6snn0x0
Message:

Fixed #440: If there's a -R command line flag, store the passed filename
in the state environment variable (unless it's set already).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • devel/conf.c

    r406 r412  
    7878        } 
    7979         
    80         while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hu:" ) ) >= 0 ) 
     80        while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hR:u:" ) ) >= 0 ) 
    8181        /*     ^^^^ Just to make sure we skip this step from the REHASH handler. */ 
    8282        { 
     
    145145                                "  -h  Show this help page.\n" ); 
    146146                        return NULL; 
     147                } 
     148                else if( opt == 'R' ) 
     149                { 
     150                        /* Backward compatibility; older BitlBees passed this 
     151                           info using a command-line flag. Allow people to 
     152                           upgrade from such a version for now. */ 
     153                        setenv( "_BITLBEE_RESTART_STATE", optarg, 0 ); 
    147154                } 
    148155                else if( opt == 'u' )