Copy struct library.should_activate_latent on clone
authorPetr Machata <pmachata@redhat.com>
Fri, 25 Jul 2014 11:03:59 +0000 (13:03 +0200)
committerChanho Park <chanho61.park@samsung.com>
Fri, 22 Aug 2014 11:38:27 +0000 (20:38 +0900)
- I don't think it makes actual difference, as the only consumer of this
  symbol is proc_add_library, and that's not called from proc_clone (the
  clone is done by directly iterating the library list).  But the code is
  more obviously right this way.

library.c

index a0cd860..7fb14c1 100644 (file)
--- a/library.c
+++ b/library.c
@@ -525,6 +525,7 @@ library_clone(struct library *retp, struct library *lib)
        library_set_pathname(retp, pathname, lib->own_pathname);
 
        retp->key = lib->key;
+       retp->should_activate_latent = lib->should_activate_latent;
 
        /* Clone symbols.  */
        {