~ubuntu-branches/ubuntu/feisty/dovecot/feisty-security

« back to all changes in this revision

Viewing changes to src/dict/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-11-27 20:47:11 UTC
  • mfrom: (1.10.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061127204711-z7alg32xp4tnftjs
Tags: 1.0.rc15-1ubuntu1
* Merge from debian unstable. Remaining changes:
  - snakeoil ssl
  - Remove stop script symlinks from rc0 and rc6

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
static void main_init(void)
58
58
{
59
 
        const char *path;
 
59
        const char *value, *path;
60
60
        int fd;
61
61
 
 
62
        value = getenv("DOVECOT_VERSION");
 
63
        if (value != NULL && strcmp(value, PACKAGE_VERSION) != 0) {
 
64
                i_fatal("Dovecot version mismatch: "
 
65
                        "Master is v%s, dict is v"PACKAGE_VERSION" "
 
66
                        "(if you don't care, set version_ignore=yes)", value);
 
67
        }
 
68
 
62
69
        lib_signals_init();
63
70
        lib_signals_set_handler(SIGINT, TRUE, sig_die, NULL);
64
71
        lib_signals_set_handler(SIGTERM, TRUE, sig_die, NULL);