2000-07-11 08:43:49 +00:00
|
|
|
--- src/parse_rc.c.orig Fri Mar 31 23:36:30 2000
|
|
|
|
+++ src/parse_rc.c Tue Jul 11 11:08:20 2000
|
1999-05-17 10:32:43 +00:00
|
|
|
@@ -23,7 +23,6 @@
|
|
|
|
#include <glob.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
-#include <values.h>
|
|
|
|
|
|
|
|
|
|
|
|
#include "parse.h"
|
2000-07-11 08:43:49 +00:00
|
|
|
@@ -46,12 +45,8 @@
|
1999-05-17 10:32:43 +00:00
|
|
|
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++) {
|
2000-07-11 08:43:49 +00:00
|
|
|
@@ -74,11 +69,7 @@
|
1999-05-17 10:32:43 +00:00
|
|
|
|
|
|
|
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 {
|