diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-03-16 20:50:08 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-03-16 20:50:08 +0000 |
commit | 4bd0dcfca0534098b03013d6e1eaa178ab42133d (patch) | |
tree | 60d7a1a2786a2fcc2d6fd82cf0ccf57abb1cb170 /src/xine-engine/configfile.c | |
parent | 2be764027b945d1c694b31bfbb9c786fdb424776 (diff) | |
download | xine-lib-4bd0dcfca0534098b03013d6e1eaa178ab42133d.tar.gz xine-lib-4bd0dcfca0534098b03013d6e1eaa178ab42133d.tar.bz2 |
implicit changes to the configuration are now disabled by default and have
to be enabled by the user
CVS patchset: 6274
CVS date: 2004/03/16 20:50:08
Diffstat (limited to 'src/xine-engine/configfile.c')
-rw-r--r-- | src/xine-engine/configfile.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/xine-engine/configfile.c b/src/xine-engine/configfile.c index 87791acb0..dd8fa7806 100644 --- a/src/xine-engine/configfile.c +++ b/src/xine-engine/configfile.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: configfile.c,v 1.62 2004/03/03 20:09:16 mroi Exp $ + * $Id: configfile.c,v 1.63 2004/03/16 20:50:08 mroi Exp $ * * config object (was: file) management - implementation * @@ -969,6 +969,15 @@ int _x_config_change_opt(config_values_t *config, const char *opt) { int handled = 0; lprintf ("change_opt '%s'\n", opt); + + if ((entry = config->lookup_entry(config, "misc.implicit_config")) && + entry->type == CONFIG_TYPE_BOOL) { + if (!entry->num_value) + /* changing config entries implicitly is denied */ + return -1; + } else + /* someone messed with the config entry */ + return -1; if(config && opt) { char *key, *value; |