/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: 2010-10-13 06:12:52 UTC
  • Revision ID: teddy@fukt.bsnet.se-20101013061252-3a918xedja5caya8
* debian/mandos-client.lintian-overrides: Added plugins.d/plymouth.

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,2009 Teddy Hogeborn
6
 
 * Copyright © 2008,2009 Björn Påhlsson
 
5
 * Copyright © 2008-2010 Teddy Hogeborn
 
6
 * Copyright © 2008-2010 Björn Påhlsson
7
7
 * 
8
8
 * This program is free software: you can redistribute it and/or
9
9
 * modify it under the terms of the GNU General Public License as
1001
1001
      }
1002
1002
      if(p->environ[0] == NULL){
1003
1003
        if(execv(filename, p->argv) < 0){
1004
 
          error(0, errno, "execv");
 
1004
          error(0, errno, "execv for %s", filename);
1005
1005
          _exit(EX_OSERR);
1006
1006
        }
1007
1007
      } else {
1008
1008
        if(execve(filename, p->argv, p->environ) < 0){
1009
 
          error(0, errno, "execve");
 
1009
          error(0, errno, "execve for %s", filename);
1010
1010
          _exit(EX_OSERR);
1011
1011
        }
1012
1012
      }