[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

garbage in /etc/conf.modules after kickstart install



After installing RH 5.1 with a sufficiently large server side kickstart
file, the options line in /etc/conf.modules file contains garbage --
notably the tail end of the kickstart file.

The problem arises because intLoadModule() saves a pointer to the
options parameter that has been alloca'd off the stack.  The attached
patch resolves this problem.  YMMV

--- ../install.orig/devices.c	Wed Jul  1 17:33:37 1998
+++ devices.c	Wed Jul 15 17:00:08 1998
@@ -776,6 +776,11 @@
     if (drlist) { 
 	dl = allocDL(drlist);
 
+	{
+	  int i;
+	  for (i = 0; i < argc; i++)
+	    argv[i] = strdup(argv[i]);
+	}
 	dl->type = type;
 	dl->minor = minor;
 	dl->argv = argv;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]