Files
poky/meta/recipes-devtools/mtools/mtools/disable-hardcoded-configs.patch
Ed Bartosh de5776c41a mtools-native: fix Upstream-Status
This is OE-specific customisation so set the status as such.

(From OE-Core rev: 059846662f1ea1c82804cfce5f91afcb2980ec8a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-06-14 14:53:58 +01:00

24 lines
754 B
Diff

Disabled reading host configs.
Upstream-Status: Inappropriate [native]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
--- mtools-4.0.18/config.c.orig 2017-06-13 12:27:38.644000000 +0300
+++ mtools-4.0.18/config.c 2017-06-13 12:28:47.576000000 +0300
@@ -701,14 +701,6 @@
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 );