Undelivered Mail Returned to Sender

Message ID 20210810130200.21ADD3D3B0EB@fx302.security-mail.net
State Not applicable
Headers
Series Undelivered Mail Returned to Sender |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

Mail Delivery System Aug. 10, 2021, 1:02 p.m. UTC
  This is the mail system at host fx302.security-mail.net.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<mpoulhies@kalray.eu>: host zimbra2.kalray.eu[195.135.97.26] said: 550 5.1.1
    <mpoulhies@kalray.eu>: Recipient address rejected: User unknown in virtual
    mailbox table (in reply to RCPT TO command)


Hi,

I am seeing test failures with tst-canon-bz26341. Using strace I found out that
the problem comes from when change the current working directory to my glibc build
directory, I use a path with is using itself symlinks. So at the beginning of the
test the "filename" variable needs to be canonicalized properly to make it pass in
these conditions.

Tested on x86-64.

Cheers,
Romain

From 99ef44560977e366c64912cfcb2a6535a0614c50 Mon Sep 17 00:00:00 2001
From: Romain Geissler <romain.geissler@amadeus.com>
Date: Tue, 10 Aug 2021 12:40:41 +0000
Subject: [PATCH] Fix tst-canon-bz26341 when the glibc build current working
 directory is itself using symlinks.

---
 stdlib/tst-canon-bz26341.c | 6 ++++++
 1 file changed, 6 insertions(+)
  

Patch

diff --git a/stdlib/tst-canon-bz26341.c b/stdlib/tst-canon-bz26341.c
index acb0fd4ec30..171ec0dc45a 100644
--- a/stdlib/tst-canon-bz26341.c
+++ b/stdlib/tst-canon-bz26341.c
@@ -45,6 +45,12 @@  create_link (void)
   TEST_VERIFY_EXIT (fd != -1);
   xclose (fd);
 
+  /* Make filename a canonical path. */
+  char *saved_filename = filename;
+  filename = realpath (filename, NULL);
+  free (saved_filename);
+  TEST_VERIFY (filename != NULL);
+
   /* Create MAXLINKS symbolic links to the temporary filename.
      On exit, linkname has the last link created.  */
   char *prevlink = filename;