mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	kconfig: require an exact match for "is not set" to disable CONFIG option
Currently, any string starting "is not set" disables a CONFIG option. For example, "# CONFIG_FOO is not settled down" is accepted as valid input, functioning the same as "# CONFIG_FOO is not set". It is a long-standing oddity. Check the line against the exact pattern "is not set". Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
		
							parent
							
								
									9925d6b7d1
								
							
						
					
					
						commit
						4aced3ec84
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -454,7 +454,7 @@ int conf_read_simple(const char *name, int def)
 | 
				
			||||||
			if (!p)
 | 
								if (!p)
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
			*p++ = 0;
 | 
								*p++ = 0;
 | 
				
			||||||
			if (strncmp(p, "is not set", 10))
 | 
								if (strcmp(p, "is not set"))
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			val = "n";
 | 
								val = "n";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue