diff options
author | jdp <jdp@FreeBSD.org> | 1997-01-12 00:10:57 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1997-01-12 00:10:57 +0000 |
commit | cda6305fe1bcf75b59acded6a6ad6e4eeec98f64 (patch) | |
tree | 88f7bdd92cb2228be605ea759a2ae098fab81276 | |
parent | 2c25ac3d92e4a6aa7157953692db5e5b594f44d6 (diff) | |
download | FreeBSD-src-cda6305fe1bcf75b59acded6a6ad6e4eeec98f64.zip FreeBSD-src-cda6305fe1bcf75b59acded6a6ad6e4eeec98f64.tar.gz |
Set LD_TRACE_LOADED_OBJECTS to "1" instead of to "". The dynamic linker
now treats empty "LD_*" environment variables as if they were unset, per
the standard SVR4 conventions.
-rw-r--r-- | gnu/usr.bin/ld/ldd/ldd.c | 4 | ||||
-rw-r--r-- | usr.bin/ldd/ldd.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/ld/ldd/ldd.c b/gnu/usr.bin/ld/ldd/ldd.c index abd0106..875d229 100644 --- a/gnu/usr.bin/ld/ldd/ldd.c +++ b/gnu/usr.bin/ld/ldd/ldd.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: ldd.c,v 1.9 1996/11/22 13:58:03 peter Exp $ + * $Id: ldd.c,v 1.10 1996/11/30 16:12:46 bde Exp $ */ #include <sys/types.h> @@ -100,7 +100,7 @@ char *argv[]; } /* ld.so magic */ - setenv("LD_TRACE_LOADED_OBJECTS", "", 1); + setenv("LD_TRACE_LOADED_OBJECTS", "1", 1); if (fmt1) setenv("LD_TRACE_LOADED_OBJECTS_FMT1", fmt1, 1); if (fmt2) diff --git a/usr.bin/ldd/ldd.c b/usr.bin/ldd/ldd.c index abd0106..875d229 100644 --- a/usr.bin/ldd/ldd.c +++ b/usr.bin/ldd/ldd.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: ldd.c,v 1.9 1996/11/22 13:58:03 peter Exp $ + * $Id: ldd.c,v 1.10 1996/11/30 16:12:46 bde Exp $ */ #include <sys/types.h> @@ -100,7 +100,7 @@ char *argv[]; } /* ld.so magic */ - setenv("LD_TRACE_LOADED_OBJECTS", "", 1); + setenv("LD_TRACE_LOADED_OBJECTS", "1", 1); if (fmt1) setenv("LD_TRACE_LOADED_OBJECTS_FMT1", fmt1, 1); if (fmt2) |