mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-12 12:10:16 +00:00
stdlib: Fix tst-canon-bz26341 when the glibc build current working directory is itself using symlinks.
This commit is contained in:
parent
82fd7314c7
commit
e037274c8e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user