summaryrefslogtreecommitdiffstats
path: root/abs/core/klibc-kbd/no-exit.patch
blob: 2f207dc04217d356dc92041c2fb6a90b91054db6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 96dc0b9e56da64d2c063d1e74c81034b6b404bc2 Mon Sep 17 00:00:00 2001
From: Roman Kyrylych <roman@archlinux.org>
Date: Sat, 15 Mar 2008 21:46:35 +0200
Subject: [PATCH] Do not exit on ferror during psf font loading when built with klibc

Signed-off-by: Roman Kyrylych <roman@archlinux.org>
---
 src/psffontop.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/psffontop.c b/src/psffontop.c
index 1b99e9b..75a6048 100644
--- a/src/psffontop.c
+++ b/src/psffontop.c
@@ -203,9 +203,13 @@ readpsffont(FILE *fontf, char **allbufp, int *allszp,
 			}
 			n += fread(inputbuf+n, 1, inputbuflth-n, fontf);
 			if (ferror(fontf)) {
+				#ifndef __klibc__
 				char *u = _("%s: Error reading input font");
 				fprintf(stderr, u, progname);
 				exit(EX_DATAERR);
+				#else
+				break;
+				#endif
 			}
 			if (feof(fontf))
 				break;
-- 
1.5.3.7