summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/mtools/mtools/disable-hardcoded-configs.patch
blob: c78f73d255eaf0f1797a767bd1e26b4c229547d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From bd2ec723326b6d57350da73b444dd43e923011e8 Mon Sep 17 00:00:00 2001
From: Ed Bartosh <ed.bartosh@linux.intel.com>
Date: Tue, 13 Jun 2017 14:55:52 +0300
Subject: [PATCH] Disabled reading host configs.

Upstream-Status: Inappropriate [native]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>

---
 config.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/config.c b/config.c
index 173eae0..0654cc1 100644
--- a/config.c
+++ b/config.c
@@ -836,14 +836,6 @@ void read_config(void)
 	memcpy(devices, const_devices,
 	       nr_const_devices*sizeof(struct device));
 
-    (void) ((parse(CONF_FILE,1) |
-	     parse(LOCAL_CONF_FILE,1) |
-	     parse(SYS_CONF_FILE,1)) ||
-	    (parse(OLD_CONF_FILE,1) |
-	     parse(OLD_LOCAL_CONF_FILE,1)));
-    /* the old-name configuration files only get executed if none of the
-     * new-name config files were used */
-
     homedir = get_homedir();
     if ( homedir ){
 	strncpy(conf_file, homedir, MAXPATHLEN );