initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
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) {