/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 23:18:19 UTC
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: teddy@recompile.se-20230207231819-ky8gih4frobhc31t
From: Paulo Henrique de Lima Santana <phls@debian.org>

Add Brazilian Portuguese debconf translation

* debian/po/pt_BR.po: New.

Closes: #1026400
Acked-by: Teddy Hogeborn <teddy@recompile.se>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1488
1488
    if(send_buffer == NULL){
1489
1489
      error(0, errno, "Failed to allocate send_buffer");
1490
1490
    } else {
1491
 
#if defined(__GNUC__) and __GNUC__ >= 5
1492
 
#pragma GCC diagnostic push
1493
 
  /* mlock() does not access the memory */
1494
 
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
1495
 
#endif
1496
1491
      if(mlock(send_buffer, send_buffer_length) != 0){
1497
 
#if defined(__GNUC__) and __GNUC__ >= 5
1498
 
#pragma GCC diagnostic pop
1499
 
#endif
1500
1492
        /* Warn but do not treat as fatal error */
1501
1493
        if(errno != EPERM and errno != ENOMEM){
1502
1494
          error(0, errno, "Failed to lock memory for password"
4855
4847
  memcpy(ievent->name, dummy_file_name, sizeof(dummy_file_name));
4856
4848
  const size_t ievent_size = (sizeof(struct inotify_event)
4857
4849
                              + sizeof(dummy_file_name));
4858
 
#if defined(__GNUC__) and __GNUC__ >= 11
4859
 
#pragma GCC diagnostic push
4860
 
  /* ievent is pointing into a struct which is of sufficient size */
4861
 
#pragma GCC diagnostic ignored "-Wstringop-overread"
4862
 
#endif
4863
4850
  g_assert_cmpint(write(pipefds[1], (char *)ievent, ievent_size),
4864
4851
                  ==, ievent_size);
4865
 
#if defined(__GNUC__) and __GNUC__ >= 11
4866
 
#pragma GCC diagnostic pop
4867
 
#endif
4868
4852
  g_assert_cmpint(close(pipefds[1]), ==, 0);
4869
4853
 
4870
4854
  bool quit_now = false;