From 2120037b332c32106dab2dcda0f6ff56115173c7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 26 Feb 2019 09:54:21 +0100 Subject: [PATCH] unset XDG vars --- src/rps/gnunet-rps-profiler.c | 2 ++ src/testbed/gnunet-testbed-profiler.c | 32 ++++++++++++--------------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c index cdf555432..9aa786334 100644 --- a/src/rps/gnunet-rps-profiler.c +++ b/src/rps/gnunet-rps-profiler.c @@ -2976,6 +2976,8 @@ main (int argc, char *argv[]) GNUNET_GETOPT_OPTION_END }; + unsetenv ("XDG_DATA_HOME"); + unsetenv ("XDG_CONFIG_HOME"); //if (GNUNET_OK != // GNUNET_STRINGS_get_utf8_args (argc, argv, // &argc, &argv)) diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c index 8b19d7431..d9401286c 100644 --- a/src/testbed/gnunet-testbed-profiler.c +++ b/src/testbed/gnunet-testbed-profiler.c @@ -11,7 +11,7 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . @@ -276,27 +276,23 @@ int main (int argc, char *const *argv) { struct GNUNET_GETOPT_CommandLineOption options[] = { - GNUNET_GETOPT_option_uint ('p', - "num-peers", - "COUNT", - gettext_noop ("create COUNT number of peers"), - &num_peers), - + "num-peers", + "COUNT", + gettext_noop ("create COUNT number of peers"), + &num_peers), GNUNET_GETOPT_option_uint ('e', - "num-errors", - "COUNT", - gettext_noop ("tolerate COUNT number of continious timeout failures"), - &num_cont_fails), - + "num-errors", + "COUNT", + gettext_noop ("tolerate COUNT number of continious timeout failures"), + &num_cont_fails), GNUNET_GETOPT_option_flag ('n', - "non-interactive", - gettext_noop ("run profiler in non-interactive mode where upon " - "testbed setup the profiler does not wait for a " - "keystroke but continues to run until a termination " - "signal is received"), + "non-interactive", + gettext_noop ("run profiler in non-interactive mode where upon " + "testbed setup the profiler does not wait for a " + "keystroke but continues to run until a termination " + "signal is received"), &noninteractive), - #if !ENABLE_SUPERMUC GNUNET_GETOPT_option_string ('H', "hosts", -- 2.25.1