components/bash/patches/solaris-005.variables.c.patch
author Tomas Kuthan <tomas.kuthan@oracle.com>
Tue, 20 Sep 2016 03:54:40 -0700
changeset 6931 f6f7269f85a9
parent 5518 c47fe0edc204
child 7485 89b2d849f322
permissions -rw-r--r--
24597931 PAM_BUGFIX by-passes fake password for timing attack avoidance

# Export the default variables if they aren't set.
# Otherwise we end up with inconsistently defined/exported
# defaults.
# Solaris-specific patch.
--- variables.c	2011-01-24 17:07:48.000000000 -0800
+++ variables.c	2011-11-29 09:29:51.902791524 -0800
@@ -417,14 +417,12 @@
   /* Now make our own defaults in case the vars that we think are
      important are missing. */
   temp_var = set_if_not ("PATH", DEFAULT_PATH_VALUE);
-#if 0
+
   set_auto_export (temp_var);	/* XXX */
-#endif
 
   temp_var = set_if_not ("TERM", "dumb");
-#if 0
+
   set_auto_export (temp_var);	/* XXX */
-#endif
 
 #if defined (__QNX__)
   /* set node id -- don't import it from the environment */