freebsd-ports/print/pdq/files/patch-ab
2000-07-11 08:43:49 +00:00

39 lines
966 B
Plaintext

--- src/parse_rc.c.orig Fri Mar 31 23:36:30 2000
+++ src/parse_rc.c Tue Jul 11 11:08:20 2000
@@ -23,7 +23,6 @@
#include <glob.h>
#include <string.h>
#include <stdlib.h>
-#include <values.h>
#include "parse.h"
@@ -46,12 +45,8 @@
i = glob (d, 0, NULL, &globbuf);
free (d);
if (i != 0) {
- if (i == GLOB_NOMATCH) {
- /* Keep on going */
- } else {
- fprintf (stderr, "Died while globbing %s\n", d);
- my_exit (1);
- }
+ fprintf (stderr, "Died while globbing %s\n", d);
+ my_exit (1);
} else {
/* Globbed something real */
for (i = 0; i < globbuf.gl_pathc; i++) {
@@ -74,11 +69,7 @@
i = glob (d, 0, NULL, &globbuf);
if (i != 0) {
- if (i == GLOB_NOMATCH) {
- fprintf (stderr, "No files match %s\n", d);
- } else {
- fprintf (stderr, "Died while globbing %s\n", d);
- }
+ fprintf (stderr, "Died while globbing %s\n", d);
free (d);
my_exit (1);
} else {