summaryrefslogtreecommitdiff
path: root/Ports/mrsh/patches/disable-glob.patch
blob: a287707f5f42e495859862628472558f74fdb908 (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
32
33
34
--- a/shell/word.c	2020-02-04 15:23:40.077301321 +0300
+++ b/shell/word.c	2020-02-04 15:24:09.428550187 +0300
@@ -1,7 +1,7 @@
 #define _POSIX_C_SOURCE 200809L
 #include <assert.h>
 #include <ctype.h>
-#include <glob.h>
+// #include <glob.h>
 #include <mrsh/buffer.h>
 #include <pwd.h>
 #include <stdbool.h>
@@ -338,11 +338,13 @@
 		const struct mrsh_array *fields) {
 	for (size_t i = 0; i < fields->len; ++i) {
 		const struct mrsh_word *field = fields->data[i];
-
+/*
 		char *pattern = word_to_pattern(field);
 		if (pattern == NULL) {
+*/
 			mrsh_array_add(expanded, mrsh_word_str(field));
 			continue;
+/*
 		}
 
 		glob_t glob_buf;
@@ -361,6 +363,7 @@
 		}
 
 		free(pattern);
+*/
 	}
 
 	return true;