/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 dracut-module/password-agent.c

  • Committer: Teddy Hogeborn
  • Date: 2021-01-31 21:40:15 UTC
  • mto: This revision was merged to the branch mainline in revision 404.
  • Revision ID: teddy@recompile.se-20210131214015-yz7ogk2mqfdfflo6
Work around Debian bug #981302

* plugin-runner.c (main): If the /dev/fd symlink is missing, create
  it.
* plugins.d/mandos-client.c (main): - '' -

Reported-By: Eero Häkkinen <+debian-bts-2021@eero.xn--hkkinen-5wa.fi>
Suggested-by: Eero Häkkinen <+debian-bts-2021@eero.xn--hkkinen-5wa.fi>
Thanks: Eero Häkkinen for bug report and analysis

Show diffs side-by-side

added added

removed removed

Lines of Context:
5978
5978
      g_test_skip("Skipping EMSGSIZE test: Will not try 1GiB");
5979
5979
      return;
5980
5980
    }
5981
 
    free(message_buffer);
5982
 
    message_buffer = malloc(message_size);
 
5981
    message_buffer = realloc(message_buffer, message_size);
5983
5982
    if(message_buffer == NULL){
5984
5983
      g_test_skip("Skipping EMSGSIZE test");
5985
5984
      g_test_message("Failed to malloc() %" PRIuMAX " bytes",
6006
6005
        g_test_message("Error on send(): %s", strerror(saved_errno));
6007
6006
        return;
6008
6007
      }
 
6008
      break;
6009
6009
    } else if(ssret != (ssize_t)message_size){
6010
6010
      g_test_skip("Skipping EMSGSIZE test");
6011
6011
      g_test_message("Partial send(): %" PRIuMAX " of %" PRIdMAX