2.6.14-mm2: no .config.old any more?

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

 




hi,

i noticed that 2.6.14-mm2 does not generate a .config.old anymore, so that i can undo changes. i see that the Kconfig system is probably in flux again ("Why did oldconfig's behavior change in 2.6.15-rc1?"), but i have not seen this issue being reported:

% cp .config .config.really-old
% make menuconfig
[...]
scripts/kconfig/mconf arch/x86_64/Kconfig
#
# using defaults found in .config
#

*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

% diff .config.really-old .config
4c4
< # Tue Nov 15 00:23:53 2005
---
> # Tue Nov 15 00:24:41 2005
1454c1454
< CONFIG_PRINTK_TIME=y
---
> # CONFIG_PRINTK_TIME is not set

% ls .config.old
ls: .config.old: No such file or directory

attached patch reverts one change introduced in 2.6.14-mm1 and fixes it for me, but i doubt that it is the right thing to do....

thanks,
Christian.
--
BOFH excuse #404:

Sysadmin accidentally destroyed pager with a large hammer.
--- linux-2.6-mm/scripts/kconfig/confdata.c.2.6.14-mm2	2005-11-15 00:41:29.647399464 +0100
+++ linux-2.6-mm/scripts/kconfig/confdata.c	2005-11-15 00:45:21.291184256 +0100
@@ -518,23 +518,13 @@ int conf_write(const char *name)
 		if (!name)
 			name = conf_def_filename;
 		sprintf(tmpname, "%s.old", name);
-//		printf("rename1(%s, %s)\n", name, tmpname);
-//		rename(name, tmpname);
+		rename(name, tmpname);
 	}
 	sprintf(tmpname, "%s%s", dirname, basename);
-//	printf("rename2(%s, %s)\n", newname, tmpname);
-#if 0
 	if (rename(newname, tmpname))
 		return 1;
-#else
-	{
-		char buf[256];
-		sprintf(buf, "cp %s %s", newname, tmpname);
-		system(buf);
-		unlink(newname);
-	}
-#endif
- 	sym_change_count = 0;
- 
+
+	sym_change_count = 0;
+
 	return 0;
 }

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux