blob: 243caad5e1e8979883254f789dc3ae8f9e013939 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//SPDX-License-Identifier: GPL-3.0
#include <config.h>
#include <exchange_update_exception.h>
#include <libqalculate/Calculator.h>
#include <security_util.h>
int main() {
do_setuid();
Calculator calc(true);
if (!calc.canFetch())
throw exchange_update_exception();
calc.fetchExchangeRates(TIMEOUT_UPDATE);
// for some reason this returns false even when it's successful so I'm not going to check it
}
|