=== modified file 'plugins.d/password-prompt.c' --- plugins.d/password-prompt.c 2008-08-29 05:53:59 +0000 +++ plugins.d/password-prompt.c 2008-09-06 00:19:53 +0000 @@ -256,6 +256,9 @@ fprintf(stderr, "%s is exiting with status %d\n", argv[0], status); } + if(status == EXIT_SUCCESS){ + fputc('\n', stderr); + } return status; } === modified file 'plugins.d/password-request.c' --- plugins.d/password-request.c 2008-09-03 19:04:05 +0000 +++ plugins.d/password-request.c 2008-09-06 00:19:53 +0000 @@ -918,29 +918,6 @@ } } - ret = init_gnutls_global(&mc, pubkey, seckey); - if (ret == -1){ - fprintf(stderr, "init_gnutls_global failed\n"); - exitcode = EXIT_FAILURE; - goto end; - } else { - gnutls_initalized = true; - } - - if(mkdtemp(tempdir) == NULL){ - perror("mkdtemp"); - tempdir[0] = '\0'; - goto end; - } - - if(not init_gpgme(&mc, pubkey, seckey, tempdir)){ - fprintf(stderr, "pgpme_initalized failed\n"); - exitcode = EXIT_FAILURE; - goto end; - } else { - pgpme_initalized = true; - } - /* If the interface is down, bring it up */ { sd = socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP); @@ -984,6 +961,29 @@ perror("setgid"); } + ret = init_gnutls_global(&mc, pubkey, seckey); + if (ret == -1){ + fprintf(stderr, "init_gnutls_global failed\n"); + exitcode = EXIT_FAILURE; + goto end; + } else { + gnutls_initalized = true; + } + + if(mkdtemp(tempdir) == NULL){ + perror("mkdtemp"); + tempdir[0] = '\0'; + goto end; + } + + if(not init_gpgme(&mc, pubkey, seckey, tempdir)){ + fprintf(stderr, "pgpme_initalized failed\n"); + exitcode = EXIT_FAILURE; + goto end; + } else { + pgpme_initalized = true; + } + if_index = (AvahiIfIndex) if_nametoindex(interface); if(if_index == 0){ fprintf(stderr, "No such interface: \"%s\"\n", interface);