/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 plugins.d/mandos-client.c

  • Committer: Björn Påhlsson
  • Date: 2009-01-29 22:01:00 UTC
  • Revision ID: belorn@nexus-20090129220100-8wzzh4q1b1ka56a2
* mandos (main): Catch SIGSEGV and raise RuntimeError.

Show diffs side-by-side

added added

removed removed

Lines of Context:
961
961
    uid = getuid();
962
962
    gid = getgid();
963
963
    
 
964
    ret = setuid(uid);
 
965
    if(ret == -1){
 
966
      perror("setuid");
 
967
    }
 
968
    
964
969
    setgid(gid);
965
970
    if(ret == -1){
966
971
      perror("setgid");
967
972
    }
968
973
    
969
 
    ret = setuid(uid);
970
 
    if(ret == -1){
971
 
      perror("setuid");
972
 
    }
973
 
    
974
974
    ret = init_gnutls_global(&mc, pubkey, seckey);
975
975
    if(ret == -1){
976
976
      fprintf(stderr, "init_gnutls_global failed\n");