diff options
-rw-r--r-- | include/conf.h | 1 | ||||
-rw-r--r-- | src/config_global.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/conf.h b/include/conf.h index e1ab93a..80ba457 100644 --- a/include/conf.h +++ b/include/conf.h @@ -30,6 +30,7 @@ typedef struct { char *user_config_basedir; char *user_config_file; int verbose; + int prompt_user; ConfigItem **config; struct utsname sysinfo; SPM_Hierarchy fs; diff --git a/src/config_global.c b/src/config_global.c index e2d19e3..a43ae5b 100644 --- a/src/config_global.c +++ b/src/config_global.c @@ -167,6 +167,7 @@ void init_config_global(void) { SPM_GLOBAL.verbose = 0; SPM_GLOBAL.repo_target = NULL; SPM_GLOBAL.mirror_list = NULL; + SPM_GLOBAL.prompt_user = 1; if (uname(&SPM_GLOBAL.sysinfo) != 0) { fprintf(SYSERROR); |