mirror of
https://github.com/pdewacht/brlaser
synced 2024-12-26 15:38:20 +01:00
Add OpenBSD pledge
This commit is contained in:
parent
39ed3c5708
commit
3008302bb5
@ -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);
|
ras = cupsRasterOpen(fd, CUPS_RASTER_READ);
|
||||||
if (!ras) {
|
if (!ras) {
|
||||||
fprintf(stderr, "DEBUG: " PACKAGE ": Cannot read raster data. Most likely an earlier filter in the pipeline failed.\n");
|
fprintf(stderr, "DEBUG: " PACKAGE ": Cannot read raster data. Most likely an earlier filter in the pipeline failed.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user