52 lines
1.4 KiB
Diff
52 lines
1.4 KiB
Diff
diff --git a/bdftopcf.c b/bdftopcf.c
|
|
index 720e14e..6f9e96b 100644
|
|
--- a/bdftopcf.c
|
|
+++ b/bdftopcf.c
|
|
@@ -39,7 +39,6 @@ from The Open Group.
|
|
#include "bdfint.h"
|
|
#include "pcf.h"
|
|
#include <stdio.h>
|
|
-#include <unistd.h>
|
|
#include <X11/Xos.h>
|
|
|
|
int
|
|
@@ -159,38 +158,6 @@ main(int argc, char *argv[])
|
|
}
|
|
argv++;
|
|
}
|
|
-
|
|
- if (input_name) {
|
|
- if (unveil(input_name, "r") == -1) {
|
|
- fprintf(stderr, "%s: could not unveil %s\n",
|
|
- program_name, input_name);
|
|
- exit(1);
|
|
- }
|
|
- }
|
|
- if (output_name) {
|
|
- if (unveil(output_name, "rwc") == -1) {
|
|
- fprintf(stderr, "%s: could not unveil %s\n",
|
|
- program_name, output_name);
|
|
- exit(1);
|
|
- }
|
|
- if (pledge("stdio rpath wpath cpath", NULL) == -1) {
|
|
- fprintf(stderr, "%s: could not pledge\n", program_name);
|
|
- exit(1);
|
|
- }
|
|
- }
|
|
- if (input_name && !output_name) {
|
|
- if (pledge("stdio rpath", NULL) == -1) {
|
|
- fprintf(stderr, "%s: could not pledge\n", program_name);
|
|
- exit(1);
|
|
- }
|
|
- }
|
|
- if (!input_name && !output_name) {
|
|
- if (pledge("stdio", NULL) == -1) {
|
|
- fprintf(stderr, "%s: could not pledge\n", program_name);
|
|
- exit(1);
|
|
- }
|
|
- }
|
|
-
|
|
if (input_name) {
|
|
input = FontFileOpen(input_name);
|
|
if (!input) {
|