/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugin-runner.c

  • Committer: Teddy Hogeborn
  • Date: 2008-12-28 10:35:32 UTC
  • Revision ID: teddy@fukt.bsnet.se-20081228103532-rsh0y9slgh9jc3vo
* mandos (AvahiError): Converted to use unicode.  All users changed.
  (AvahiError.__init__): Take *args and **kwargs and pass on all
                         arguments to super() call.
  (AvahiError.__str__): Removed.
  (AvahiError.__unicode__): New.
  (entry_group_state_changed): Bug fix: Raise AvahiGroupError with one
                               argument, not two.
  (main): Bug fix: on AvahiError, removed "%s" from log message.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/*
3
3
 * Mandos plugin runner - Run Mandos plugins
4
4
 *
5
 
 * Copyright © 2008 Teddy Hogeborn & Björn Påhlsson
 
5
 * Copyright © 2008 Teddy Hogeborn
 
6
 * Copyright © 2008 Björn Påhlsson
6
7
 * 
7
8
 * This program is free software: you can redistribute it and/or
8
9
 * modify it under the terms of the GNU General Public License as
700
701
      
701
702
      const char const *bad_suffixes[] = { "~", "#", ".dpkg-new",
702
703
                                           ".dpkg-old",
 
704
                                           ".dpkg-bak",
703
705
                                           ".dpkg-divert", NULL };
704
706
      for(const char **pre = bad_prefixes; *pre != NULL; pre++){
705
707
        size_t pre_len = strlen(*pre);