/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: Björn Påhlsson
  • Date: 2010-09-07 18:41:35 UTC
  • mfrom: (417 mandos)
  • mto: (237.4.3 mandos-release)
  • mto: This revision was merged to the branch mainline in revision 421.
  • Revision ID: belorn@fukt.bsnet.se-20100907184135-hcd2aou8r2trz8cy
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1001
1001
      }
1002
1002
      if(p->environ[0] == NULL){
1003
1003
        if(execv(filename, p->argv) < 0){
1004
 
          error(0, errno, "execv for %s", filename);
 
1004
          error(0, errno, "execv");
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 for %s", filename);
 
1009
          error(0, errno, "execve");
1010
1010
          _exit(EX_OSERR);
1011
1011
        }
1012
1012
      }