1
0
mirror of https://github.com/pdewacht/brlaser synced 2024-12-26 07:28:21 +01:00

Add OpenBSD pledge

This commit is contained in:
Peter De Wachter 2018-01-26 23:54:21 +01:00
parent 39ed3c5708
commit 3008302bb5

View File

@ -153,6 +153,13 @@ int main(int argc, char *argv[]) {
}
}
#ifdef __OpenBSD__
if (pledge("stdio", nullptr) != 0) {
fprintf(stderr, "ERROR: " PACKAGE ": pledge failed\n");
return 1;
}
#endif
ras = cupsRasterOpen(fd, CUPS_RASTER_READ);
if (!ras) {
fprintf(stderr, "DEBUG: " PACKAGE ": Cannot read raster data. Most likely an earlier filter in the pipeline failed.\n");