/mandos/release

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

« back to all changes in this revision

Viewing changes to plugin-runner.c

* Makefile (BROKEN_PIE): Add comment.
* debian/rules (BROKEN_PIE): - '' -
* plugin-runner.c: Really always use <sysexits.h> exit codes.
* plugins.d/mandos-client.c: Use <sysexits.h> exit codes.
  (start_mandos_communication): Make sure errno is always set when
                                returning -1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
682
682
       not affect opening plugins */
683
683
    if(errno == EMFILE or errno == ENFILE or errno == ENOMEM){
684
684
      perror("fopen");
685
 
      exitstatus = EX_OSERR;
 
685
      exitstatus = EX_IOERR;
686
686
      goto fallback;
687
687
    }
688
688
  }