Changeset e0798cc


Ignore:
Timestamp:
2008-07-31T22:27:13Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d84e2a9
Parents:
0f4c2734
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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    r0f4c2734 re0798cc  
    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' )
Note: See TracChangeset for help on using the changeset viewer.