/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: 2023-02-07 19:50:53 UTC
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: teddy@recompile.se-20230207195053-0zftuysnfexf6fo6
Improve POSIX shell compatibility

* dracut-module/password-agent.c
  (test_start_mandos_client_helper_directory): Use the "printf" shell
  command instead of "echo".

Show diffs side-by-side

added added

removed removed

Lines of Context:
2661
2661
  bool password_is_read = false;
2662
2662
  const char helper_directory[] = "/nonexistent";
2663
2663
  const char *const argv[] = { "/bin/sh", "-c",
2664
 
    "echo -n ${MANDOSPLUGINHELPERDIR}", NULL };
 
2664
    "printf %s \"${MANDOSPLUGINHELPERDIR}\"", NULL };
2665
2665
 
2666
2666
  const bool success = start_mandos_client(queue, epoll_fd,
2667
2667
                                           &mandos_client_exited,