Skip to content

Commit

Permalink
One more bug in ldconfig -r handling.
Browse files Browse the repository at this point in the history
(cherry picked from commit 49bd556)
  • Loading branch information
Ulrich Drepper authored and Petr Baudis committed May 12, 2010
1 parent 850121f commit 8ef4dba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2010-05-03 Ulrich Drepper <drepper@redhat.com>

* elf/ldconfig.c (parse_conf_include): Don't fall back to
directories named in config file outside the chroot.

2010-05-02 Ulrich Drepper <drepper@redhat.com>

* misc/mntent_r.c (encode_name): The slow loop handles newlines so we
Expand Down
4 changes: 3 additions & 1 deletion elf/ldconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,9 @@ parse_conf_include (const char *config_file, unsigned int lineno,
if (do_chroot && opt_chroot)
{
char *canon = chroot_canon (opt_chroot, pattern);
result = glob64 (canon ?: pattern, 0, NULL, &gl);
if (canon == NULL)
return;
result = glob64 (canon, 0, NULL, &gl);
free (canon);
}
else
Expand Down

0 comments on commit 8ef4dba

Please sign in to comment.