]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Describe problem.
authorUlrich Drepper <drepper@redhat.com>
Thu, 8 Jul 1999 11:49:21 +0000 (11:49 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 8 Jul 1999 11:49:21 +0000 (11:49 +0000)
sysdeps/generic/setenv.c

index 21d9b675cb1b648febf4f7646d1e404aa0c04106..a5818d03bfa78ae4dc24b735667e6c639d50b7a2 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+/* Issues:
+
+   1. putenv must not use setenv since the string provided by the user
+      must be used, not a copy
+
+   2. a common function should determine the place where to insert the
+      new entry and if necessary take care of extending the array
+
+   3. It must be kept track of whether an entry was inserted via putenv
+      or setenv.  In the former case the entry must not be put into
+      the search tree since removing it could mean it will not be
+      available anymore (e.g., when allocated on the stack)
+
+      To handle this an array parallel to the __environ array must specify
+      whether the entry was added via putenv or not
+*/
+
 #if HAVE_CONFIG_H
 # include <config.h>
 #endif