Index: apertium/apertium_interchunk.cc --- apertium/apertium_interchunk.cc.orig +++ apertium/apertium_interchunk.cc @@ -86,6 +86,12 @@ FILE * open_output(string const &filename) int main(int argc, char *argv[]) { + if (pledge("stdio rpath wpath cpath", NULL) == -1) + { + wcerr << "pledge" << endl; + exit(EXIT_FAILURE); + } + LtLocale::tryToSetLocale(); Interchunk i;