Subject: bin/206: dlopen should make a copy of the so's path
To: None <gnats-admin>
From: None <thomas@mathematik.uni-Bremen.de>
List: netbsd-bugs
Date: 04/06/1994 15:20:09
>Number:         206
>Category:       bin
>Synopsis:       dlopen should make a copy of the so's path
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr  6 15:20:08 1994
>Originator:     Thomas Eberhardt
>Organization:
CeVis, University of Bremen, Germany
>Release:        
>Environment:
	
System: NetBSD ed209 0.9a ED209#0 i386

Machine: i386
>Description:
	After some mysterious errors from making AUIS-6.2 work with
	NetBSD-current's dynamic loader, I've found that dlopen() doesn't
	make a copy of the passwd shared object path.
>How-To-Repeat:
	
>Fix:
*** ld/rtld/rtld.c-	Tue Feb 15 22:51:23 1994
--- ld/rtld/rtld.c	Mon Apr  4 00:37:49 1994
***************
*** 1129,1135 ****
  		return NULL;
  	}
  
! 	sodp->sod_name = (long)name;
  	sodp->sod_library = 0;
  	sodp->sod_major = sodp->sod_minor = 0;
  
--- 1129,1135 ----
  		return NULL;
  	}
  
! 	sodp->sod_name = (long)strdup(name);
  	sodp->sod_library = 0;
  	sodp->sod_major = sodp->sod_minor = 0;
  
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------