diff options
| author | grunfink <grunfink@noreply.codeberg.org> | 2026-02-07 16:59:33 +0100 |
|---|---|---|
| committer | grunfink <grunfink@noreply.codeberg.org> | 2026-02-07 16:59:33 +0100 |
| commit | 841b726f71ba82635237d0064517a6dcb39a9067 (patch) | |
| tree | 13e196e417251737b580aa52966071f96baeff2c /data.c | |
| parent | 79cf2cae3986c18be2830db79f9fcfd641a4c19d (diff) | |
| parent | ea81780895702b08b0b93ff48bd1876330632b89 (diff) | |
Merge pull request 'strip_exif support for the OpenBSD sandbox' (#548) from oxzi/snac2:strip-metadata-openbsd into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/548
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 19 |
1 files changed, 6 insertions, 13 deletions
@@ -100,19 +100,12 @@ int srv_open(const char *basedir, int auto_upgrade) if (auto_upgrade) ret = snac_upgrade(&error); - else { - if (xs_number_get(xs_dict_get(srv_config, "layout")) < disk_layout) - error = xs_fmt("ERROR: disk layout changed - execute 'snac upgrade' first"); - else { - if (!check_strip_tool()) { - const char *mp = xs_dict_get(srv_config, "mogrify_path"); - if (mp == NULL) mp = "mogrify"; - error = xs_fmt("ERROR: strip_exif enabled but '%s' not found or not working (set 'mogrify_path' in server.json)", mp); - } - else - ret = 1; - } - } + else if (xs_number_get(xs_dict_get(srv_config, "layout")) < disk_layout) + error = xs_fmt("ERROR: disk layout changed - execute 'snac upgrade' first"); + else if (!check_strip_tool()) + error = xs_fmt("ERROR: strip_exif enabled but commands not found or working"); + else + ret = 1; } } |